:root {
  --phim-site-bg: #191b24;
  --phim-bg: var(--phim-site-bg);
  --phim-panel: #191c29;
  --phim-muted: #999eae;
  --phim-line: #292d3b;
}
.phim-hybrid-site {
  background: var(--phim-bg);
  color: #fff;
}
.phim-hybrid-site #header,
.phim-hybrid-site #footer {
  display: none;
}
.phim-hybrid-site #wrapper,
.phim-hybrid-site #main {
  background: var(--phim-bg);
}
.phim-hybrid-site .gwd-archive {
  background: var(--phim-site-bg) !important;
}
.phim-app {
  font-family: Inter, Arial, sans-serif;
  background: var(--phim-bg);
  color: #f6f6f8;
}
.phim-app * {
  box-sizing: border-box;
}
.phim-shell {
  max-width: 1480px;
  margin: auto;
  background: var(--phim-site-bg);
  min-height: 100vh;
}
.phim-header {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 30px;
  background: #191b24f2;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #ffffff0c;
}
.phim-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
}
.phim-brand i {
  font-size: 34px;
  color: var(--phim-accent);
}
.phim-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.phim-brand b {
  font-size: 19px;
}
.phim-brand small {
  font-size: 9px;
  color: #9da1ad;
  margin-top: 4px;
}
.phim-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  background: #272a3d;
  min-width: 220px;
}
.phim-search input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  margin: 0 !important;
  height: auto !important;
  font-size: 12px;
}
.phim-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}
.phim-header nav a {
  color: #d4d4d9;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.phim-header nav a:hover {
  color: var(--phim-accent);
}
.phim-member,
.phim-play {
  border-radius: 18px;
  background: #f5f5f7;
  color: #151721 !important;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.phim-hero {
  height: 570px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(
      circle at 70% 38%,
      transparent 0 16%,
      #191c22aa 47%,
      #191b24 75%
    ),
    linear-gradient(100deg, #232633 0%, #7d5b4a 48%, #30313b 100%);
}
.phim-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #191b24 0%, transparent 55%),
    linear-gradient(0deg, #191b24 0%, transparent 40%), var(--hero-image, none);
  background-size: cover;
  background-position: center bottom;
  opacity: 0.72;
}
.phim-hero__content {
  position: relative;
  z-index: 2;
  width: 55%;
  padding: 20px 55px;
}
.phim-eyebrow {
  font-size: 12px;
  color: var(--phim-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.phim-hero h1 {
  font-size: 48px;
  max-width: 660px;
  margin: 12px 0 15px;
  line-height: 1.1;
  color: #fff;
}
.phim-hero p {
  color: #c6c7ce;
  max-width: 550px;
  font-size: 15px;
}
.phim-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #d9d9dd;
  font-size: 12px;
}
.phim-meta b {
  color: #62d992;
}
.phim-meta span {
  border: 1px solid #ffffff40;
  padding: 3px 6px;
  border-radius: 4px;
}
.phim-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.phim-actions button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #ffffff20;
  color: #fff;
}
.phim-hero__art {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: 8%;
  transform: rotate(-5deg);
  text-align: center;
  text-shadow: 0 12px 30px #000;
}
.phim-hero__art span {
  display: block;
  color: #fff;
  font-weight: 900;
  font-size: 35px;
}
.phim-hero__art strong {
  font-size: 72px;
  line-height: 0.8;
  color: #d4ff8b;
  -webkit-text-stroke: 3px #10131a;
}
.phim-content {
  padding: 0 30px 50px;
}
.phim-ticker {
  height: 68px;
  border: 1px solid var(--phim-line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-top: -12px;
  position: relative;
  z-index: 3;
  background: #131621;
  overflow: hidden;
}
.phim-ticker b {
  width: 130px;
  font-size: 12px;
  color: #fff;
}
.phim-ticker span {
  min-width: 124px;
  text-align: center;
  background: #222532;
  border-radius: 9px;
  padding: 11px 15px;
  color: #ffe058;
  font-weight: 900;
  font-style: italic;
}
.phim-content h2 {
  font-size: 22px;
  margin: 26px 0 14px;
}
.phim-topics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.phim-topics a {
  height: 112px;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--topic), #ffffff30);
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.phim-topics b {
  font-size: 18px;
}
.phim-topics small {
  margin-top: 11px;
}

/* Standalone topic directory page. */
.gwd-topics--page {
  min-height: 520px;
  padding-top: 58px;
  padding-bottom: 80px;
}
.gwd-topics--page .gwd-topics__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media screen and (max-width: 768px) {
  .gwd-topics--page {
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 48px;
  }
}
.phim-sponsors {
  display: grid;
  grid-template-columns: 140px repeat(5, 1fr);
  gap: 12px;
  align-items: center;
  margin: 16px 0 36px;
}
.phim-sponsors b {
  font-size: 13px;
}
.phim-sponsors span {
  text-align: center;
  background: #222531;
  padding: 12px;
  border-radius: 9px;
  color: #f1d746;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
}
.phim-catalog {
  background: #1a1d2b;
  border-radius: 15px;
  padding: 28px;
}
.phim-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
.phim-row:last-child {
  margin-bottom: 0;
}
.phim-row__title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.phim-row__title h3 {
  color: var(--row-accent);
  font-size: 23px;
  line-height: 1.25;
}
.phim-row__title a {
  color: #ddd;
  text-decoration: none;
  font-size: 11px;
}
.phim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.phim-poster {
  height: 190px;
  display: block;
  background-size: cover;
  background-position: center;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
}
.phim-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0009, transparent 60%);
}
.phim-poster span {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  padding: 5px 9px;
  background: #10291dcc;
  color: #8dffae;
  font-size: 10px;
}
.phim-poster b {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  opacity: 0;
  transition: 0.2s;
}
.phim-poster:hover b {
  opacity: 1;
}
.phim-grid h4 {
  font-size: 13px;
  margin: 10px 0 4px;
  color: #fff;
}
.phim-grid small {
  color: var(--phim-muted);
  font-size: 10px;
}
.phim-community {
  margin-top: 42px;
  border: 1px solid var(--phim-line);
  border-radius: 14px;
  overflow: hidden;
}
.phim-community > h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 20px;
  margin: 0;
}
.phim-comments {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 0 20px 22px;
}
.phim-comments article {
  background: #161925;
  padding: 14px;
  border-radius: 9px;
  min-height: 125px;
}
.phim-comments i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f4d0a5;
  color: #342017;
  margin-right: 8px;
}
.phim-comments b {
  font-size: 11px;
}
.phim-comments p,
.phim-comments small {
  color: #8e93a0;
  font-size: 10px;
}
.phim-rank {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  border-top: 1px solid var(--phim-line);
}
.phim-rank > div {
  padding: 20px;
  border-right: 1px solid var(--phim-line);
}
.phim-rank h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
}
.phim-rank li,
.phim-rank p {
  font-size: 11px;
  color: #b8bbc5;
  padding: 8px;
}
.phim-article {
  padding-top: 60px;
  max-width: 900px;
  margin: auto;
}
.phim-article article {
  background: var(--phim-panel);
  padding: 40px;
  border-radius: 14px;
  margin-top: 20px;
}
.phim-app.is-loading:after {
  content: "Đang tải nội dung…";
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--phim-accent);
  color: #111;
  padding: 10px 16px;
  border-radius: 20px;
  z-index: 100;
  font-weight: 700;
}
.phim-app.is-loading {
  opacity: 0.78;
  transition: opacity 0.15s;
}
@media screen and (max-width: 768px) {
  .phim-header nav {
    display: none;
  }
  .phim-search {
    flex: 1;
  }
  .phim-hero h1 {
    font-size: 40px;
  }
  .phim-topics {
    grid-template-columns: repeat(3, 1fr);
  }
  .phim-sponsors {
    grid-template-columns: repeat(3, 1fr);
  }
  .phim-sponsors b {
    grid-column: 1/-1;
  }
  .phim-row {
    grid-template-columns: 1fr;
  }
  .phim-row__title {
    display: block;
  }
  .phim-comments {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .phim-header {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .phim-search {
    order: 3;
    flex-basis: 100%;
  }
  .phim-member {
    margin-left: auto;
  }
  .phim-hero {
    height: 500px;
  }
  .phim-hero__content {
    width: 100%;
    padding: 28px 20px;
  }
  .phim-hero h1 {
    font-size: 35px;
  }
  .phim-hero__art {
    display: none;
  }
  .phim-content {
    padding: 0 14px 35px;
  }
  .phim-ticker {
    overflow-x: auto;
  }
  .phim-topics {
    grid-template-columns: repeat(2, 1fr);
  }
  .phim-sponsors {
    grid-template-columns: repeat(2, 1fr);
  }
  .phim-catalog {
    padding: 18px;
  }
  .phim-grid {
    display: flex;
    overflow-x: auto;
  }
  .phim-grid article {
    min-width: 78vw;
  }
  .phim-comments {
    display: flex;
    overflow-x: auto;
  }
  .phim-comments article {
    min-width: 230px;
  }
  .phim-rank {
    grid-template-columns: 1fr;
  }
  .phim-poster {
    height: 185px;
  }
}
.phim-library {
  padding-top: 50px;
  min-height: calc(100vh - 68px);
}
.phim-page-heading span {
  color: var(--phim-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.phim-page-heading h1 {
  font-size: 42px;
  margin: 10px 0;
}
.phim-page-heading p {
  color: var(--phim-muted);
}
.phim-library-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin-top: 35px;
}
.phim-library-card__image {
  display: block;
  height: 330px;
  background-size: cover;
  background-position: center;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
}
.phim-library-card__image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #07080dcc, transparent 60%);
}
.phim-library-card__image span {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--phim-accent);
  color: #111;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}
.phim-library-card__image b {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 35px;
  color: #fff;
}
.phim-library-card h2 {
  font-size: 16px;
  margin: 12px 0 3px;
}
.phim-library-card h2 a {
  color: #fff;
  text-decoration: none;
}
.phim-library-card p {
  font-size: 11px;
  color: var(--phim-muted);
}
.phim-detail {
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px;
}
.phim-detail__backdrop {
  height: 540px;
  background-image: linear-gradient(0deg, #191b24 0%, transparent 75%),
    linear-gradient(90deg, #191b24bb, transparent), var(--movie-backdrop);
  background-size: cover;
  background-position: center;
}
.phim-detail__body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 35px;
  max-width: 1100px;
  margin: -230px auto 0;
  position: relative;
  padding: 0 24px;
}
.phim-detail__poster {
  height: 380px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px #0009;
}
.phim-detail__info {
  padding-top: 30px;
}
.phim-detail__info h1 {
  font-size: 42px;
  margin: 8px 0;
  color: #fff;
}
.phim-detail__info h2 {
  font-size: 15px;
  color: #a9acb7;
  font-weight: 500;
}
.phim-detail__info > p {
  max-width: 720px;
  color: #d1d2d8;
  margin: 18px 0;
}
.phim-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
}
.phim-tags span {
  background: #ffffff12;
  border: 1px solid #ffffff20;
  padding: 7px 10px;
  border-radius: 16px;
  font-size: 11px;
}
.phim-detail__description {
  max-width: 1100px;
  margin: 45px auto 0;
  padding: 30px;
  background: #191c29;
  border-radius: 14px;
}
.phim-detail__description h3 {
  font-size: 20px;
}
.phim-detail__description p {
  color: #b8bbc5;
}
.phim-episodes {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.phim-episodes a {
  background: #282c3c;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.phim-episodes a:hover,
.phim-episodes a.is-active {
  background: var(--phim-accent);
  color: #111;
}
.phim-api-note {
  margin-top: 25px !important;
  font-size: 11px;
}
.phim-api-note code {
  color: #82e5b1;
}
.phim-watch {
  padding: 35px;
  min-height: calc(100vh - 68px);
}
.phim-watch > a {
  color: #ddd;
  text-decoration: none;
}
.phim-watch h1 {
  font-size: 25px;
  margin: 22px 0;
}
.phim-player {
  aspect-ratio: 16/8;
  max-height: 680px;
  margin: 25px 0;
  background: radial-gradient(circle at center, #383d54, #090a10 65%);
  border-radius: 15px;
  display: grid;
  place-items: center;
  text-align: center;
}
.phim-player strong {
  display: block;
  font-size: 70px;
  color: var(--phim-accent);
  margin: 20px;
}
.phim-player span {
  letter-spacing: 0.2em;
  font-size: 11px;
}
.phim-player p {
  color: #9297a7;
  font-size: 12px;
}
.phim-player code {
  color: #fff;
}
@media screen and (max-width: 768px) {
  .phim-library-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .phim-detail__body {
    grid-template-columns: 190px 1fr;
  }
  .phim-detail__poster {
    height: 290px;
  }
  .phim-detail__info h1 {
    font-size: 32px;
  }
}
@media screen and (max-width: 768px) {
  .phim-library-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .phim-library-card__image {
    height: 240px;
  }
  .phim-detail__backdrop {
    height: 350px;
  }
  .phim-detail__body {
    display: block;
    margin-top: -120px;
  }
  .phim-detail__poster {
    width: 140px;
    height: 205px;
  }
  .phim-detail__info h1 {
    font-size: 29px;
  }
  .phim-detail__description {
    margin: 30px 14px 0;
    padding: 20px;
  }
  .phim-watch {
    padding: 22px 14px;
  }
  .phim-player {
    aspect-ratio: 16/10;
  }
}
.phim-vue-root.is-loading .phim-vue-screen {
  opacity: 0.72;
  transition: opacity 0.15s;
}
.phim-vue-loading,
.phim-vue-error {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--phim-accent, #ffd667);
  color: #111;
  padding: 10px 16px;
  border-radius: 20px;
  z-index: 100;
  font-weight: 700;
  box-shadow: 0 8px 30px #0008;
}
.phim-vue-error {
  background: #ff6679;
  color: #fff;
}
.phim-hybrid-site #header {
  display: block !important;
}
.phim-shell,
.phim-detail__body,
.phim-detail__description {
  width: 100%;
  max-width: var(--phim-layout-width, 1920px) !important;
  margin-left: auto;
  margin-right: auto;
}
.phim-hybrid-site #footer.footer-wrapper {
  display: block;
}

