
:root {
  --bg-base:       #090B21;
  --bg-deep:       #090B21;
  --bg-topbar:     #090B21;
  --bg-card:       #1C1D2F;
  --bg-elevated:   #1C1D2F;

  --accent:        #00C0FF;
  --accent-hover:  #33CFFF;
  --accent-dot:    #46B8FF;
  --accent-ico:    #7EDCFF;
  --accent-light:  rgba(0, 192, 255, 0.15);
  --accent-soft:   rgba(0, 192, 255, 0.20);

  --accent-2:      #EE9D03;
  --accent-2-alt:  #FE6F71;
  --hot:           #FE6F71;

  --text-1:        #FFFFFF;
  --text-2:        rgba(255, 255, 255, 0.70);
  --text-3:        rgba(255, 255, 255, 0.40);
  --text-nav:      #BDC8DC;
  --text-muted:    rgba(255, 255, 255, 0.40);
  --text-title:    #FFFFFF;

  --fill-1:        rgba(255, 255, 255, 0.08);
  --fill-2:        rgba(255, 255, 255, 0.14);

  --border:        rgba(255, 255, 255, 0.10);
  --border-2:      rgba(255, 255, 255, 0.20);

  --score-hi:      #EE9D03;
  --score-mid:     #00C0FF;

  --header-position: fixed;

  --topbar-h:      62px;
  --sidebar-w:     150px;
  --gutter:        23px;

  --page-pad:      var(--gutter);

  --fab-right:     25px;
  --fab-w:         40px;

  --page-pad-r:    calc(var(--fab-right) + var(--fab-w));

  --section-pb:    18px;
  --hero-h:        615px;

  --hero-thumb-win: 400px;
  --hero-thumb-nav: 70px;
  --hero-clear:    62px;

  --header-solid-at: 600px;

  --gap:           24px;

  --grid-gap-y:    21px;
  --grid-gap-x:    12px;

  --radius:        6px;
  --radius-sm:     4px;
  --radius-btn:    2px;
  --radius-lg:     6px;
  --radius-pill:   100px;
  --shadow-panel:  0 10px 40px 0 rgba(0, 0, 0, 0.6);

  --content-max:   1275px;

  --poster-ratio:  7 / 10;
  --card-meta-h:   62px;
}

@media (max-width: 1199px) {
  :root {
    --page-pad: 16px;

    --page-pad-r: var(--page-pad);
  }
}
@media (max-width: 767px) {
  :root {
    --grid-gap-y: 12px;
    --grid-gap-x: 8px;
    --page-pad: 12px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-base);
  color: var(--text-2);
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", 微软雅黑, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;

  padding-top: 0;
}

a { text-decoration: none; color: inherit; }
img { display: block; background: url("../img/load.gif") no-repeat center/cover, var(--bg-elevated); }

img.is-nopic {
  object-fit: contain !important;
  padding: 12%;
  background: var(--bg-elevated);
}
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul, ol { list-style: none; }

.spi,
.episode-more-trigger,
.comment_reply,
.comment_report,
.cmt-page-btn,
.tip-link,
.ptb-btn,
.dqa-link,
.di-btn {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
  display: inline;
}

.art-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.art-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.art-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.art-breadcrumb a { color: var(--text-2); }
.art-breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--text-3); font-size: 12px; }
.bc-current { color: var(--text-1); }

@media (max-width: 767px) {
  .art-content { min-width: 0; width: 100%; }
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
}

.section--hot:not(:has(.card)) { display: none; }

.section--hot .vod-grid--hot6 {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 767px) {
  .section--hot .vod-grid--hot6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mac-icon {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;

  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-overflow-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  background-color: var(--bg-base);
}

.page-shell .main-area--noside { margin-left: 0; }
.main-area--noside .sidebar { display: none; }

.main-area {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);

  margin-left: var(--sidebar-w);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;

  z-index: 2001;
  width: var(--sidebar-w);
  height: 100%;
  padding: 62px 0 20px;

  background: linear-gradient(90deg,
    rgba(9, 11, 33, 0.9),
    rgba(9, 11, 33, 0.86) 18%,
    rgba(9, 11, 33, 0.72) 38%,
    rgba(9, 11, 33, 0.36) 62%,
    rgba(9, 11, 33, 0.08) 78%,
    rgba(9, 11, 33, 0) 90%);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sb-brand {
  display: none;
}

.brand-logo-img {
  height: 35px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
}

.sb-nav {
  display: flex;
  flex-direction: column;
}
.sb-nav > .sn-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.sn-list > li,
.mnd-nav > li {
  display: flex;
  min-width: 0;
}

.mob-nav-scroll > li {
  display: flex;

  flex-shrink: 0;
}

.sn-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 49px;

  padding: 12px 16px 12px 4px;
  margin-left: 5px;
  width: calc(var(--sidebar-w) - 10px);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-nav);
  white-space: nowrap;

  border-radius: 0;
  background: transparent;
  transition: color 0.2s ease-in-out;
}

.sn-badge {

  display: none;
  margin-left: 3px;
  padding: 0 5px;
  height: 16px;
  line-height: 16px;
  border-radius: 4px;
  background-color: rgb(225, 0, 0);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}

.sn-item::before {
  content: "";
  width: 4px;
  height: 10px;
  margin-right: 25px;
  border-radius: 999px;
  background: var(--accent-dot);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.sn-item.is-active::before {
  opacity: 1;
  box-shadow: 0 0 8px var(--accent-dot),
              0 0 16px rgba(70, 184, 255, 0.6),
              6px 0 8px rgba(70, 184, 255, 0.6);
}

.sn-item .mac-icon {
  width: 25px;
  height: 25px;
  font-size: 25px;
  margin-right: 8px;
  flex-shrink: 0;
}

.sn-item:hover { color: var(--text-1); }

.sn-item.is-active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(126, 220, 255, 0.6), 0 0 2px rgba(70, 184, 255, 0.6);
}
.sn-item.is-active .mac-icon { color: var(--accent-ico); }

.topbar {
  position: var(--header-position);
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--page-pad-r) 0 var(--page-pad);
  background-color: rgba(9, 11, 33, 0);
  pointer-events: none;
  transition: background-color 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.topbar.is-scrolled {
  background-color: transparent;
}
.topbar.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(9, 11, 33, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  pointer-events: none;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  width: 100%;
  pointer-events: auto;
}

.tb-brand {
  display: flex;
  align-items: center;
  width: var(--sidebar-w);
  height: 100%;
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  height: 100%;
  margin-left: auto;
}

.tb-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-1);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s;
}
.tb-action .mac-icon { font-size: 20px; }
.tb-action:hover { color: var(--accent); }

.tb-icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-btn);
  color: rgba(255,255,255,0.9);
  font-size: 19px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.tb-icon-btn:hover { color: var(--accent); background: none; }

.tb-search {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  height: 40px;
  width: 315px;

  padding: 0 88px 0 36px;
  background: rgba(152, 152, 152, 0.2);
  border: none;
  border-radius: 19px;
  flex-shrink: 0;
  transition: width 0.2s;
}

@media (max-width: 1439px) {
  .tb-search { width: 330px; }
}
@media (min-width: 1679px) {
  .tb-search { width: 478px; }
}
.tb-search #searchInputTop {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-2);
  font-size: 13px;
}
.tb-search #searchInputTop:focus { color: var(--text-1); }
.tb-search #searchInputTop::placeholder { color: var(--text-3); }
.tb-search-submit {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.tb-search-submit .mac-icon { font-size: 27px; width: 27px; height: 27px; }
.tb-search-submit:hover { opacity: 1; }

.tb-search-rank {
  position: absolute;
  top: 50%;
  right: 52px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.tb-search-rank .mac-icon { font-size: 22px; width: 22px; height: 22px; }
.tb-search-rank:hover { opacity: 1; }

.tb-navmenu {
  position: relative;
  display: flex;
  align-items: center;
  width: 122px;
  height: 100%;
  flex-shrink: 0;
}
.tnm-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  width: 96px;
  height: 34px;
  padding: 3px 3px 3px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--text-2);
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.tnm-label,
.tnm-caret {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.tnm-label { line-height: 24px; }
.tnm-caret { font-size: 24px; width: 24px; height: 24px; fill: currentColor; }
.tb-navmenu:hover .tnm-label,
.tb-navmenu:hover .tnm-caret {
  color: #fff;
  opacity: 1;
}

.tnm-pop {
  position: absolute;
  top: calc(var(--topbar-h) - 5px);
  left: 0;
  z-index: 1000;
  display: none;
  padding: 4px 0;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.34) 2px 2px 1px;
}

.tnm-pop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(9, 11, 33, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.tb-navmenu:hover .tnm-pop { display: block; }

.tnm-arrow {
  position: absolute;
  top: -7px;
  left: 46px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: rgba(9, 11, 33, 0.7);
}

.tnm-item {
  position: relative;
  width: 120px;
  text-align: center;
  cursor: pointer;
}
.tnm-item > a {
  display: block;
  padding: 0 8px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 30px;
  transition: color 0.2s;
}
.tnm-item > a:hover { color: var(--accent); }
.tnm-item-arrow {
  position: absolute;
  right: 5px;
  top: 6px;
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--text-3);
  pointer-events: none;
}
.tnm-item.has-sub:hover > a,
.tnm-item.has-sub:hover .tnm-item-arrow { color: var(--accent); }

.tnm-sub {
  position: absolute;
  left: 100%;
  top: -4px;
  display: none;
  padding: 4px 0;
  border-radius: 5px;
  background: rgba(9, 11, 33, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: rgba(0, 0, 0, 0.34) 2px 2px 1px;
}
.tnm-item.has-sub:hover .tnm-sub { display: block; }
.tnm-sub-item { width: 96px; text-align: center; }
.tnm-sub-item a {
  display: block;
  padding: 0 6px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 30px;
  transition: color 0.2s;
}
.tnm-sub-item a:hover { color: var(--accent); }

.tb-text-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  color: var(--text-2);
  flex-shrink: 0;
  transition: color 0.2s;
}
.tb-text-btn .mac-icon {
  font-size: 22px;
  width: 22px;
  height: 22px;
}
.tb-text-btn:hover { color: var(--text-1); }

.tb-hist-btn {
  width: 58px;
  height: var(--topbar-h);
  border-radius: 0;
  flex-direction: column;
  overflow: hidden;
}
.tb-hist-btn .mac-icon {
  font-size: 30px;
  width: 30px;
  height: 30px;
  transition: font-size 0.2s, width 0.2s, height 0.2s, transform 0.2s;
}
.tb-hist-btn::after {
  content: attr(title);
  display: block;
  height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: height 0.2s, margin-top 0.2s, opacity 0.2s;
}
.tb-hist-btn:hover .mac-icon {
  font-size: 18px;
  width: 18px;
  height: 18px;
  transform: translateY(-3px);
}
.tb-hist-btn:hover::after {
  height: 12px;
  margin-top: 2px;
  opacity: 1;
}

.tb-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 32px;
  background: rgba(152, 152, 152, 0.2);
  color: var(--text-1);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.tb-login-btn .mac-icon { font-size: 16px; }
.tb-login-btn:hover { background: var(--accent); color: #fff; }

.user-dd-wrap {
  position: relative;
}
.user-dd-wrap .tb-text-btn .user-dd-label {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dd {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  z-index: 800;
  overflow: hidden;
}
.user-dd.is-open { display: block; }
.user-dd-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.ud-avatar-icon { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.ud-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-divider { height: 1px; background: var(--border); margin: 0; }
.ud-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ud-item:hover { background: var(--bg-card); color: var(--text-1); }
.ud-item--danger { color: #e05555; }
.ud-item--danger:hover { background: rgba(224,85,85,.08); color: #f07070; }
.ud-item .mac-icon { font-size: 16px; flex-shrink: 0; }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(17, 22, 31, 0.92);
  backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.is-open { display: flex; }

.search-overlay-inner {
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(17,22,31,0.6);
  border: 1px solid #4e4e4e;
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }

.search-bar-icon {
  color: #999;
  font-size: 20px;
  flex-shrink: 0;
}

#searchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 10px 0;
  min-width: 0;
}
#searchInput::placeholder { color: #888; }

.search-submit-btn {
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.2s;
}
.search-submit-btn:hover { background: var(--accent-hover); }

.search-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #999;
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.search-close-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.search-hot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 4px 0;
}
.sh-label {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
  margin-right: 4px;
}
.sh-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid #4e4e4e;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.sh-tag:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

.page-content {
  flex: 1;

  padding-top: var(--topbar-h);
}

.page-content > .hero-container:first-child {
  margin-top: calc(var(--topbar-h) * -1);
}

.hero-container {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  background: var(--bg-deep);

  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.hero-hot-panel {
  position: absolute;

  left: 250px;

  right: calc(var(--hero-thumb-win) + var(--hero-thumb-nav) + 24px);
  bottom: 0;
  z-index: 6;
  width: auto;
  margin-left: 0;
  padding: 0 0 8px;
  pointer-events: auto;

}

.hero-hot-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  margin: 0;
  min-height: 75px;
}

@media (min-width: 1912px) {
  .hero-hot-panel .hero-hot-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
.hero-hot-entry {
  display: block;
  min-width: 0;
}

.hero-hot-item {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 300;
  line-height: 30px;
  white-space: nowrap;
  border-radius: 4px;

  text-shadow: 0 1px 3px rgba(9, 11, 33, 0.9);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.hero-hot-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-hot-item:hover {
  color: #fff;

  background-color: rgba(255, 255, 255, 0.08);
}
@media (min-width: 1912px) {
  .hero-hot-panel .hero-hot-item {
    min-height: 40px;
    padding: 5px 12px;
    font-size: 16px;
  }
}

@media (max-width: 1439px) {
  .hero-hot-panel {
    display: none;
  }
}

@media (max-width: 1199px) {
  .hero-container { height: 460px; }
}

@media (max-width: 767px) {
  .hero-container { height: 340px; }
}

.hero-container {
  position: relative;

  margin-left: calc(var(--sidebar-w) * -1);
  width: calc(100% + var(--sidebar-w));
  height: var(--hero-h);
  overflow: hidden;
  background: var(--bg-deep);

  user-select: none;
  touch-action: pan-y;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: 50% center;
  background-size: cover;

  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.hero-layer.is-active { opacity: 1; }

.hero-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(-90deg,
    rgba(9, 11, 33, 0.73),
    rgba(9, 11, 33, 0.4) 50%,
    rgba(9, 11, 33, 0.05) 83%,
    rgba(9, 11, 33, 0.02) 89%,
    rgba(9, 11, 33, 0) 99%);
}

.hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(rgba(9, 11, 33, 0), rgba(9, 11, 33, 0.62) 58%, rgba(9, 11, 33, 0.92));
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) + var(--sidebar-w));
  padding-left: var(--sidebar-w);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-info {
  position: absolute;
  left: 0;
  bottom: 20px;
  max-width: 620px;
  pointer-events: none;
}

.hero-info .hero-play { pointer-events: auto; }

.hero-title {
  font-size: 25px;
  font-weight: 600;
  line-height: 38px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-sub {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 150px;
  height: 52px;
  margin-top: 5px;
  padding-left: 15px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-1);
  font-size: 22px;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}
.hero-play:hover { background: var(--accent); color: #fff; }
.hero-play .mac-icon { font-size: 34px; }

.hero-thumb-block {
  position: absolute;
  bottom: 20px;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 5;
  pointer-events: auto;
}

.hero-thumb-window {
  width: var(--hero-thumb-win);
  min-height: 126px;
  overflow: hidden;
}

.hero-thumb-track {
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s;
}

.hero-thumb {
  position: relative;
  flex: 0 0 90px;
  width: 90px;
  height: 126px;
  margin-right: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}
.ht-cover {
  display: block;
  width: 100%;
  height: 126px;
  overflow: hidden;

  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
.ht-cover.img-loaded { background-image: none; }
.ht-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-in-out;
}

.hero-thumb:hover .ht-cover img { transform: scale(1.1); }

.ht-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78));
  pointer-events: none;
}
.ht-title {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: rgba(0, 0, 0, 0.85) 0 1px 3px;
  pointer-events: none;
}

.ht-shadow {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
  pointer-events: none;
}
.hero-thumb.is-active .ht-shadow,
.hero-thumb:hover .ht-shadow { background: none; }

.hero-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 126px;
  overflow: hidden;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}
.hero-nav .mac-icon { font-size: 48px; }
.hero-nav:hover { color: var(--accent); }
.hero-nav--prev { margin-right: 10px; }
.hero-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero.is-empty .hero-info,
.hero.is-empty .hero-thumb-block { display: none; }

@media (max-width: 1439px) {
  .hero-container { height: 541px; }
}
@media (min-width: 1440px) and (max-width: 1678px) {
  .hero-container { height: 615px; }
}
@media (min-width: 1679px) {
  .hero-container { height: 760px; }
}
@media (min-width: 2000px) and (max-width: 2329px) {
  .hero-container { height: 810px; }
}
@media (min-width: 2330px) {
  .hero-container { height: 1013px; }
}

@media (min-width: 1679px) and (max-width: 1911px) {
  :root { --hero-thumb-win: 500px; }
}
@media (min-width: 1912px) {
  :root { --hero-thumb-win: 600px; }
}

@media (max-width: 1199px) {

  .hero-container {
    margin-left: 0;
    width: 100%;
  }

  .hero-inner { left: 0; width: 100%; max-width: none; padding-left: 0; }
  .hero-info { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .hero-thumb-block { right: 16px; bottom: 16px; }
  :root { --hero-thumb-win: 300px; }
  .hero-fade-right { display: none; }
}
@media (max-width: 767px) {

  .hero-thumb-block { display: none; }
  .hero-title { font-size: 20px; line-height: 30px; }
  .hero-sub { font-size: 13px; }
  .hero-play { width: 130px; height: 44px; font-size: 18px; border-radius: 22px; }
  .hero-play .mac-icon { font-size: 26px; }
}

.carousel-container { position: relative; }

.carousel-wrapper {
  margin: 0 calc(var(--gutter) * -1);
  overflow: visible;
}

.video-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 var(--gutter);

  -ms-overflow-style: none;
  scrollbar-width: none;
}
.video-track::-webkit-scrollbar { display: none; }

.scroll-btn {
  position: absolute;
  top: 0;
  width: var(--gutter);
  height: 100%;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.8;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s, color 0.3s;
}
.scroll-btn:hover { color: #fff; opacity: 1; }
.scroll-btn span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-btn:hover span { transform: scale(1.3); }

.scroll-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.scroll-btn-left {
  left: calc(var(--gutter) * -1);
  background: linear-gradient(to right, rgba(9,11,33,1) 40%, rgba(9,11,33,0.7) 70%, transparent 100%);
}
.scroll-btn-right {
  right: calc(var(--gutter) * -1);
  background: linear-gradient(to left, rgba(9,11,33,1) 40%, rgba(9,11,33,0.7) 70%, transparent 100%);
}
.hero-scroll-btn {
  top: 15px;
  height: calc(100% - 20px);
}

@media (max-width: 1199px) {
  .carousel-wrapper { margin: 0 -16px; }
  .video-track { padding: 0 16px; }
  .scroll-btn { display: none; }
}

.hero-genre-panel {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 20px var(--page-pad-r) 4px var(--page-pad);
}
.hgp-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hgp-col--right { align-items: flex-start; }

.hero-genre-panel--single { justify-content: flex-start; }

.hgp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hgp-head {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  transition: color 0.2s;
}
.hgp-head:hover { color: var(--accent); }
.hgp-head.is-active { color: var(--accent); }

.hgp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.hgp-tag {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.hgp-tag:hover {
  color: var(--text-title);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.section {
  position: relative;

  padding: 0 var(--page-pad-r) var(--section-pb) 0;

  max-width: calc(var(--content-max) + var(--page-pad-r));
  margin-right: auto;
}

.section-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 0 18px;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-1);
  white-space: nowrap;
  transition: color 0.2s;
}
.section-title a { color: inherit; }
.section-title:hover { color: var(--accent); }

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 24px;
  margin-right: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

.section-subcats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  margin-left: 21px;
  min-width: 0;
}

.section-subcat {
  display: flex;
  align-items: center;
  margin-right: 14px;
  height: 25px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.section-subcat:last-child { margin-right: 0; }
.section-subcat span {
  display: inline-block;
  width: 70px;
  height: 25px;
  line-height: 25px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  border-radius: 9px;
  background: var(--bg-card);
  transition: background-color 0.2s, color 0.2s;
}
.section-subcat:hover { color: #fff; }
.section-subcat:hover span { background: var(--accent); color: #fff; }

@media (max-width: 1199px) {
  .section { padding: 0 var(--page-pad-r) var(--section-pb) var(--page-pad); }
  .section-header { padding: 10px 0 14px; }
  .section-title { font-size: 18px; }

  .section-subcats { display: none; }
}

.section-body {

}

.section-main {
  width: 100%;
}

.section-main .vod-grid {
  grid-template-columns: repeat(6, 1fr);

  gap: var(--grid-gap-y) var(--grid-gap-x);
}

@media (max-width: 1199px) {
  .section-main .vod-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 767px) {
  .section-main .vod-grid { grid-template-columns: repeat(3, 1fr); }
}

.content-block {

  padding: 0px var(--page-pad-r) 4px 0;

  max-width: calc(var(--content-max) + var(--page-pad-r));
  margin-left: 0;
  margin-right: auto;
  width: 100%;
}

@media (min-width: 1679px) and (max-width: 1911px) {
  :root { --content-max: 1542px; }
}
/* ⚠️ 寬螢幕不要再用固定像素封頂——參考站（100.nqxyvqd.xyz 的 wy-content-main）
   實測在 3152px 視窗下內容區寬度是 2976px（＝視窗－側欄），沒有任何 max-width，
   也就是「頁面越寬、內容區跟著等比例變寬」，不是撐到某個值就停住。
   1912px 以上把 .section／.content-block 等消費者的 max-width 直接解除（見下方），
   讓它們回到 width:100% 貼著 main-area 的可用寬度持續縮放。 */
@media (min-width: 1912px) {
  .section,
  .content-block,
  .mcid-list,
  .footer-links,
  .site-footer > p,
  .hero-inner {
    max-width: none;
  }
}

.section-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title-icon {
  color: var(--accent);
  font-size: 20px;
  display: flex;
}

.section-more {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 25px;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
}
.section-more .mac-icon {
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-more:hover {
  background: none;
  color: var(--accent);
}
.section-more:hover .mac-icon { transform: translateX(3px); }

.two-col { display: flex; gap: 20px; align-items: stretch; }
.col-main { flex: 1; min-width: 0; }
.col-side { flex: 0 0 260px; display: flex; }
.col-side .rank-col {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.col-side .rank-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 10px;
  font-size: 17px;
  line-height: 1.2;
}
.col-side .rch-badge { margin-left: 0; }
.col-side .rank-top1 {
  padding: 14px 12px 12px;
}
.col-side .rank-top1 a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.col-side .rt1-thumb { width: 84px; height: 112px; }
.col-side .rt1-name {
  font-size: 16px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.col-side .rt1-meta,
.col-side .rt1-status {
  font-size: 14px;
  line-height: 1.45;
}
.col-side .rank-list {
  display: block;
  padding: 4px 0 10px;
}
.col-side .rank-li {
  display: block;
  margin-top: 8px;
}
.col-side .rank-li:first-child { margin-top: 0; }
.col-side .rank-li-inner {
  height: auto;
  min-height: 40px;
  padding: 6px 12px;
  align-items: center;
  font-size: 15px;
}
.col-side .rl-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.col-side .rl-hits { font-size: 14px; }

.vod-row,
.vod-grid,
.play-vod-grid,
.detail-vod-grid,
.td-vod-grid,
.plot-related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  gap: var(--grid-gap-y) var(--grid-gap-x);
}

.vod-row > .card,
.vod-grid > .card,
.play-vod-grid > .card,
.detail-vod-grid > .card,
.td-vod-grid > .card,
.plot-related-grid > .card {
  flex: none;
  width: 100%;
  min-width: 0;
}

.actor-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--grid-gap-y) var(--grid-gap-x);
}

.card {
  position: relative;
  min-width: 0;
}

.card-link {
  display: block;
  color: inherit;
}

.card-cover {
  position: relative;
  width: 100%;

  aspect-ratio: var(--poster-ratio);
  border-radius: var(--radius);
  overflow: hidden;

  background: var(--bg-card) url("../img/load.gif") no-repeat center/cover;
}
.card-cover.img-loaded { background-image: none; }

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: var(--radius-btn);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-1);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  display: flex;
  align-items: flex-end;
  padding: 0 8px 6px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}
.card-score {
  color: var(--score-hi);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.card-meta {
  min-height: var(--card-meta-h);
  padding: 8px 6px;
  background: var(--bg-base);
}
.card-title {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.card-tags {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card:hover .card-title { color: var(--accent); }

.card-detail-wrap {
  width: 100%;
  height: 0;
}

.card-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  border-radius: var(--radius-sm);

  background-repeat: no-repeat;
  background-position: 50% center;
  background-size: cover;
  background-color: var(--bg-card);
  box-shadow: rgba(0, 0, 0, 0.34) 0 0 4px 1px;
  cursor: default;
  transition: width 0.1s ease-out, height 0.1s ease-out,
              top 0.1s ease-out, left 0.1s ease-out;
}
.cd-link { display: block; width: 100%; height: 100%; color: inherit; }

.cd-cover {
  position: absolute;
  z-index: 111;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 48%, rgba(0, 0, 0, 0.9));
}

.cd-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  margin: 75px auto 0;
}
.cd-play .mac-icon {
  width: 75px;
  height: 75px;
  font-size: 75px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s linear;
}
.cd-play:hover .mac-icon { color: #fff; }

.cd-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 113;
  padding: 1px 6px;
  border-radius: var(--radius-btn);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-1);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-ctn {
  position: absolute;
  z-index: 112;
  left: 0;
  right: 0;
  bottom: 0;
  height: min-content;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 10px 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.cd-title {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-tags {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow: hidden;
  margin: 0.75em 0;
  font-size: 12px;
  color: var(--text-2);
}
.cd-tags span {
  display: inline-block;
  width: 44px;
  flex-shrink: 0;
  padding: 0.1em 0;
  margin-right: 0.5em;
  background-color: rgb(43, 44, 58);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-tags span:last-child { margin-right: 0; }

.cd-intro { font-size: 12px; color: var(--text-2); }
.cd-il { color: var(--text-3); }
.cd-date,
.cd-starring {
  height: 20px;
  line-height: 20px;
  margin-bottom: 0.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.cd-story {
  height: 36px;
  line-height: 20px;
  margin-bottom: 0.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.cd-action {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 10px;
}
.cd-hot { display: flex; align-items: center; gap: 4px; }
.cd-hot .mac-icon { font-size: 21px; color: #ff743d; }

.cd-hot-num { font-size: 12px; color: #ff743d; }
.cd-dialog {
  padding: 1px 13px;
  font-size: 12px;
  text-align: center;
  color: var(--text-3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.cd-dialog:hover {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

@media (any-hover: hover) {
  .card:hover .card-detail {
    opacity: 1;
    z-index: 110;
    width: 125%;
    height: 110%;
    top: -5%;
    left: -12.5%;
  }
  .card.pop-left:hover .card-detail { left: 0; }
  .card.pop-right:hover .card-detail { left: -25%; }
}

@media (max-width: 768px) {
  .card-title { font-size: 14px; line-height: 20px; }
  .card-tags { font-size: 12px; line-height: 18px; }
  .card-badge { font-size: 10px; }
  .card-score { font-size: 12px; }
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 600;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  width: 340px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--text-3);
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-1); }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; color: var(--text-1); }
.modal-field { margin-bottom: 16px; }
.modal-label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.modal-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: var(--accent); }
.modal-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
  margin-top: 6px;
}
.modal-submit:hover { background: var(--accent-hover); }

.verify-row { display: flex; align-items: center; gap: 8px; }
.modal-input--verify { flex: 1; }
.verify-img { height: 36px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-2); cursor: pointer; flex-shrink: 0; }
.sms-btn { height: 38px; padding: 0 12px; background: var(--bg-elevated); border: 1px solid var(--border-2); border-radius: var(--radius-sm); color: var(--accent); font-size: 12px; white-space: nowrap; cursor: pointer; transition: background .15s; }
.sms-btn:hover { background: var(--bg-card); }
.sms-btn:disabled { opacity: .55; cursor: not-allowed; }

.mac-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--bg-elevated);
  color: var(--text-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: pre-line;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.mac-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mac-toast--error   { border-color: #e05555; color: #f07070; }
.mac-toast--success { border-color: var(--accent); color: var(--accent); }
.mac-toast--info    { border-color: var(--border-2); color: var(--text-2); }

.modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.modal-link { color: var(--text-2); transition: color 0.2s; }
.modal-link:hover { color: var(--accent); }
.modal-link--accent { color: var(--accent); }

.modal-box--confirm { width: 300px; text-align: center; }
.modal-box--confirm .modal-title { margin-bottom: 22px; }
.modal-confirm-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-submit--danger { display: block; background: var(--accent-2); }
.modal-submit--danger:hover { background: var(--accent-2-alt); }
.modal-cancel {
  width: 100%;
  padding: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.modal-cancel:hover { color: var(--text-1); border-color: var(--accent); }

.mcid-list {

  display: none;
  max-width: calc(var(--content-max) + var(--page-pad-r));
  margin: 0 auto 0 0;
  padding: 20px var(--page-pad-r) 4px var(--page-pad);
  flex-wrap: wrap;
  gap: 16px 0;
}
.mcid-type { width: 25%; padding-right: 12px; }
.mcid-type h2 { margin-bottom: 8px; }
.mcid-type h2 a { font-size: 15px; color: var(--text-3); font-weight: 700; }
.mcid-type h2 a:hover { color: var(--accent); }
.mcid-type ul { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.mcid-type ul li a { font-size: 12px; color: var(--text-3); }
.mcid-type ul li a:hover { color: var(--accent); }
.site-footer {
  padding: 0 0 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.8;
  background: var(--bg-base);
  margin-top: 24px;
  text-align: center;
}
.footer-links {
  max-width: calc(var(--content-max) + var(--page-pad-r));
  margin: 0 auto 0 0;
  padding: 16px var(--page-pad-r) 4px var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}
.footer-links a { color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.site-footer > p {
  max-width: calc(var(--content-max) + var(--page-pad-r));
  margin: 0 auto 0 0;
  padding: 6px var(--page-pad-r) 0 var(--page-pad);
}
.footer-bottom-bar {
  margin-top: 14px;
  padding: 12px 20px;
  background: var(--bg-topbar);
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}

.fab-group {
  position: fixed;
  right: var(--fab-right);
  bottom: 30px;
  width: var(--fab-w);
  z-index: 999;
  opacity: 0.95;
  user-select: none;
}
.fab-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--fab-w);
  border-radius: 20px;
  background: rgba(28, 29, 47, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);

  padding: 18px 0;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.34);

  overflow: visible;
}
.fab-btn {
  position: relative;
  width: var(--fab-w);
  height: 35px;
  line-height: 35px;
  border: none;
  border-radius: 0;
  background: none;

  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.fab-btn .mac-icon { font-size: 22px; }

.fab-btn:hover {
  background: rgb(56, 67, 134);
}

.fab-hint {
  position: absolute;

  right: 2.8em;
  top: 0;
  height: 35px;
  line-height: 35px;
  border-radius: 20px 0 0 20px;
  background: rgb(56, 67, 134);
  color: #fff;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;

  width: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
.fab-btn:hover .fab-hint {
  width: 6em;
  padding-right: 0.5em;
  padding-left: 1em;
  transition: width 0.15s;
}

.fab-btn--top { display: none; }
.fab-btn--top.is-visible { display: flex; }

.fab-qr-popup {
  position: fixed;
  bottom: 80px;
  right: 25px;
  background: #fff;

  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 12px;
  display: none;
  z-index: 999;
  width: 150px;
  text-align: center;
}
.fab-qr-popup.is-open { display: block; }
.fab-qr-popup p { font-size: 12px; color: #666; margin-bottom: 10px; }
.fab-qr-popup img { width: 130px; height: 130px; border-radius: 4px; background: #fff; display: block; }

.comment-section { margin-bottom: 32px; }
.gbook-count { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 6px; }
.gbook-list { margin-bottom: 20px; }
.gbook-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.gbook-avatar {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 22px;
}
.gbook-body { flex: 1; min-width: 0; }
.gbook-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gbook-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.gbook-time { font-size: 11px; color: var(--text-3); }
.gbook-content { font-size: 13px; color: var(--text-2); line-height: 1.7; word-break: break-all; }
.gbook-reply {
  margin-top: 8px; padding: 8px 12px;
  background: var(--bg-elevated); border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: flex-start;
}
.gbook-reply .mac-icon { flex-shrink: 0; color: var(--accent-2); margin-top: 1px; }
.gbook-form { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.gbook-form-title { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 12px; }
.gbook-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px;
  font-family: inherit; resize: vertical; outline: none; line-height: 1.6;
  transition: border-color 0.2s; display: block; margin-bottom: 10px;
}
.gbook-textarea:focus { border-color: var(--accent); }
.gbook-textarea::placeholder { color: var(--text-3); }
.gbook-form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gbook-chars { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.gbook-chars em { font-style: normal; color: var(--accent); }
.gbook-verify-wrap { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.gbook-captcha-img { height: 36px; border-radius: 4px; cursor: pointer; vertical-align: middle; }
.gbook-input {
  padding: 8px 12px; background: var(--bg-elevated); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px; outline: none; transition: border-color 0.2s;
}
.gbook-input:focus { border-color: var(--accent); }
.gbook-input::placeholder { color: var(--text-3); }
.gbook-input--verify { width: 88px; }
.gbook-submit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; background: var(--accent-2); color: #fff;
  border: none; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.gbook-submit-btn:hover { background: var(--accent-2-alt); }

.rank-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}
.rank-col-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 2px solid var(--bg-base);
}
.rank-col-title { padding: 10px 12px 0; font-size: 15px; font-weight: 700; color: var(--text-1); }
.rch-badge { font-size: 10px; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--accent-light); color: var(--accent); margin-left: 6px; }
.rank-col-more { font-size: 12px; color: var(--text-3); }
.rank-col-more:hover { color: var(--accent); }
.rank-top1 { padding: 10px; }
.rank-top1 a { display: flex; gap: 10px; }
.rt1-thumb {
  position: relative; flex-shrink: 0;
  width: 72px; height: 96px;
  overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.rt1-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rt1-crown {
  position: absolute; bottom: 0; left: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 13px;
}
.rt1-info { flex: 1; min-width: 0; }
.rt1-name { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-top1 a:hover .rt1-name { color: var(--accent); }
.rt1-meta { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.rt1-status { font-size: 12px; color: var(--text-3); margin-bottom: 5px; }
.rt1-hits { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--accent-2); }
.rank-list { list-style: none; padding: 2px 0 8px; }
.rank-li { border-bottom: none; }
.rank-li-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; font-size: 13px; color: var(--text-2); transition: background 0.15s;
}
.rank-li-inner:hover { background: var(--bg-elevated); color: var(--text-1); }
.rl-num {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: var(--radius-sm); background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-3);
}
.rl-num--gold,
.rl-num--silver,
.rl-num--bronze { background: var(--accent); color: #fff; }
.rl-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rl-hits { flex-shrink: 0; font-size: 12px; color: var(--accent); }

.rank-col--topic { margin-top: 16px; }
.rct-list { list-style: none; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.rct-link { display: flex; align-items: center; gap: 10px; }
.rct-thumb {
  flex-shrink: 0; width: 56px; height: 36px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover;
}
.rct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rct-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rct-link:hover .rct-name { color: var(--accent); }

.art-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--grid-gap-y) var(--grid-gap-x); }
.art-grid > .art-grid-item { display: flex; min-width: 0; }
.art-grid > .art-grid-item > .art-card { flex: 1; min-width: 0; }
.art-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
  overflow: hidden; transition: box-shadow 0.2s; color: var(--text-1);
}
.art-card:hover { box-shadow: var(--shadow-panel); }
.art-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover; }
.art-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.art-card:hover .art-card-thumb img { transform: scale(1.04); }
.art-card-nopic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: var(--text-3); }
.art-card-cat { position: absolute; top: 8px; left: 8px; padding: 2px 8px; background: var(--accent); color: #fff; font-size: 11px; }
.art-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.art-card-title {
  font-size: 14px; font-weight: 400; color: var(--text-1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; transition: color 0.2s;
}
.art-card:hover .art-card-title { color: var(--accent); }

.topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--grid-gap-y) var(--grid-gap-x); }
.topic-grid > .topic-grid-item { display: flex; min-width: 0; }
.topic-grid > .topic-grid-item > .topic-card { flex: 1; min-width: 0; }
.topic-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 0;
  overflow: hidden; transition: box-shadow 0.2s; color: var(--text-1);
}
.topic-card:hover { box-shadow: var(--shadow-panel); }
.topic-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated) url("../img/load.gif") no-repeat center/cover; }
.topic-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.topic-card:hover .topic-card-thumb img { transform: scale(1.04); }
.topic-card-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: rgba(255,255,255,0.9);
  opacity: 0; transition: opacity 0.2s;
}
.topic-card:hover .topic-card-overlay { opacity: 1; }
.topic-card-count { position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; }
.topic-card-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.topic-card-title { font-size: 14px; font-weight: 600; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.topic-card:hover .topic-card-title { color: var(--accent); }
.topic-card-blurb { font-size: 12px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; padding: 25px 0 10px; }
.pagination ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; }
.pg-btn, .pg-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px;
  border-radius: 0;
  border: 1px solid var(--border);
  margin-left: -1px;
  background: var(--bg-card); color: var(--accent); font-size: 13px; transition: all 0.2s;
}
.pg-btn:hover, .pg-num:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.pg-num.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pg-info { font-size: 12px; color: var(--text-3); margin-left: 12px; }

.desc-collapsed { max-height: 80px; overflow: hidden; -webkit-mask-image: linear-gradient(black 40%, transparent); mask-image: linear-gradient(black 40%, transparent); }
.desc-expanded { max-height: none; mask-image: none; -webkit-mask-image: none; }
.desc-expand-btn { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--accent); padding: 6px 0; cursor: pointer; background: none; border: none; }
.desc-expand-btn:hover { text-decoration: underline; }


.mac_pop_bg { background: rgba(0,0,0,0.5) !important; }
.mac_pop { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important; padding: 0 !important; display: flex !important; flex-direction: column !important; overflow: hidden !important; }
.mac_pop .pop_top { display: flex !important; align-items: center !important; justify-content: space-between !important; height: auto !important; padding: 14px 16px !important; background: var(--bg-elevated) !important; border-bottom: 1px solid var(--border) !important; flex-shrink: 0 !important; }
.mac_pop .pop_top h2 { font-size: 15px !important; font-weight: 600 !important; color: var(--text-1) !important; margin: 0 !important; line-height: 1 !important; float: none !important; }
.mac_pop span.pop_close { float: none !important; width: 28px !important; height: 28px !important; font-size: 16px !important; text-indent: 0 !important; background: none !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; border-radius: 50% !important; color: var(--text-3) !important; cursor: pointer !important; transition: color 0.2s, background 0.2s !important; line-height: 1 !important; }
.mac_pop span.pop_close:hover { color: var(--text-1) !important; background: var(--bg-base) !important; }
.mac_pop .pop_content { flex: 1 !important; overflow-y: auto !important; }
.mac_pop_msg_bg { background: rgba(0,0,0,0.2) !important; }
.mac_pop_msg { background: var(--bg-card) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.25) !important; padding: 10px 20px !important; }
.mac_pop_msg .pop-msg { color: var(--text-1) !important; font-size: 13px !important; }

@media (max-width: 1199px) {

  .sidebar   { display: none; }
  .main-area { margin-left: 0; }

  .topbar { padding: 0 16px; gap: 12px; }
  .topbar-right { gap: 12px; }

  .tb-search { position: relative; left: auto; top: auto; transform: none; width: 210px; padding: 0 40px 0 16px; }
  .tb-search-rank { display: none; }

  .tb-navmenu { display: none; }

  .topbar-inner { width: 100%; justify-content: flex-start; }

  .topbar-right { margin-left: auto; }

  :root { --topbar-h: 56px; }

  .topbar-inner .tb-brand-mob { display: flex; }

  .topbar-inner .mob-nav-row  { display: flex; }

  .topbar,
  .topbar.is-scrolled {
    background-color: rgba(9, 11, 33, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: none;
  }

  .hero-banner { aspect-ratio: 1903 / 666; }
  .swiper-slide > a.swiper-lazy {
    background-size: contain, auto;
    background-color: #12141c;
  }

  :root { --fab-right: 14px; --fab-w: 36px; }
  .fab-group { bottom: 20px; }
  .fab-btn { height: 32px; font-size: 19px; }

  .fab-inner { padding: 12px 0; }

  .fab-btn--qr { display: none; }
  .fab-inner { display: none; }

  .fab-hint { display: none; }
  .fab-qr-popup { bottom: 62px; right: 14px; }

  .content-block { padding-left: var(--page-pad); padding-right: var(--page-pad-r); }

  .col-side { display: none; }

  .hero-genre-panel { padding: 16px 16px 0; gap: 20px; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .art-grid       { grid-template-columns: repeat(4, 1fr); }
  .topic-grid     { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {

  .hero-banner { height: auto; margin-top: 0; }
  .brand-name { display: none; }

  .vod-row,
  .vod-grid,
  .play-vod-grid,
  .detail-vod-grid,
  .td-vod-grid { grid-template-columns: repeat(3, 1fr); }
  .art-grid       { grid-template-columns: repeat(2, 1fr); }
  .topic-grid     { grid-template-columns: repeat(2, 1fr); }
  .actor-row { grid-template-columns: repeat(4, 1fr); }

  .topbar { padding: 0 14px; gap: 10px; }
  .topbar-inner { gap: 10px; }
  .topbar-right { gap: 10px; }

  .topbar-inner .mob-nav-row { display: none; }

  .topbar-right .hamburger-btn { display: flex; }

  .hero-genre-panel { display: none; }

  .tb-search { display: none; }
  .tb-icon-btn { display: flex; }
}

.content-block.will-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.content-block.is-visible {
  opacity: 1;
  transform: none;
}

.img-loaded { background-image: none !important; }

.tb-hist-wrap {
  position: relative;
}

.hist-dropdown {
  position: absolute;
  top: 100%;
  right: -12px;
  width: 376px;
  min-height: 50px;
  padding: 12px 0 0;
  color: #fff;
  background-color: rgba(9, 11, 33, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: none;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.34) 2px 2px 1px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hist-dropdown::before,
.hist-dropdown::after {
  content: "";
  position: absolute;
  right: 34px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: rgba(9, 11, 33, 0.45);
  pointer-events: none;
}
.hist-dropdown::before { top: -13px; }
.hist-dropdown::after  { top: -12px; }

@media (hover: hover) {
  .tb-hist-wrap:hover .hist-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.hist-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hist-dropdown .history-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0;
}
.hist-dropdown .history-title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.hist-dropdown .history-list {
  max-height: 245px;
  margin-top: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.hist-dropdown .history-list::-webkit-scrollbar { width: 4px; }
.hist-dropdown .history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.hist-dropdown .history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 4px 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}
.hist-dropdown .history-item:hover { color: #fff; }

.hist-dropdown .history-cover {
  flex-shrink: 0;
  width: 114px;
  height: 64px;
  overflow: hidden;
  border-radius: 4px;

  background: #222 url("../img/load.gif") no-repeat center/cover;
}
.hist-dropdown .history-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hist-dropdown .history-info {
  min-width: 0;
  overflow: hidden;
}
.hist-dropdown .item-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-dropdown .item-meta {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 12px;
  line-height: 20px;
  color: inherit;
  opacity: 0.75;
}

.hist-dropdown .history-empty {
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 43px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.hist-dropdown .history-foot {
  display: flex;
  align-items: center;
  height: 46px;
  margin-top: 14px;
  padding: 0 12px;
}
.hist-dropdown .history-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 37.5px;
  padding: 0;
  border: none;
  background: none;
  color: rgb(170, 170, 170);
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}
.hist-dropdown .history-clear .mac-icon {
  font-size: 25px;
  width: 25px;
  height: 25px;
}
.hist-dropdown .history-clear:hover { color: #fff; }

.hist-dropdown .history-more {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  height: 24px;
  font-size: 12px;
  color: rgb(170, 170, 170);
  transition: color 0.2s, opacity 0.2s;
}

.hist-dropdown.is-empty .history-clear,
.hist-dropdown.is-empty .history-more {
  opacity: 0.45;
  pointer-events: none;
}
.hist-dropdown .history-more .mac-icon { font-size: 16px; width: 16px; height: 16px; }
.hist-dropdown .history-more:hover { color: #fff; }

@media (max-width: 520px) {
  .hist-dropdown {
    position: fixed;
    top: var(--topbar-h);
    left: 12px;
    right: 12px;
    width: auto;
  }
  .hist-dropdown::before,
  .hist-dropdown::after { display: none; }
  .hist-dropdown .history-cover { width: 96px; height: 54px; }
  .hist-dropdown .history-item { height: 70px; }
  .hist-dropdown .history-list { max-height: 280px; }
}

.hamburger-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: transparent; border: none;
  color: rgba(255,255,255,0.9); font-size: 22px;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.hamburger-btn:hover { color: #fff; background: rgba(0,0,0,0.3); }

.mob-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 499;
}
.mob-nav-overlay.is-open { display: block; }

.mob-nav-drawer {
  position: fixed; top: 0; right: 0;
  width: 240px; height: 100dvh;
  background: var(--bg-topbar);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
}
.mob-nav-drawer.is-open { transform: translateX(0); }
.mob-nav-drawer::-webkit-scrollbar { display: none; }

.mnd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.mnd-title { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8); }
.mnd-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  color: rgba(255,255,255,0.8); font-size: 18px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.mnd-close:hover { color: #fff; background: rgba(0,0,0,0.3); }

.mnd-nav { display: flex; flex-direction: column; padding: 8px 0; flex: 1; overflow-y: auto; min-height: 0; }

.mnd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px;
  color: rgba(255,255,255,0.75); font-size: 15px;
  text-decoration: none; transition: color 0.2s, background 0.2s;
}
.mnd-item:hover { color: #fff; background: rgba(0,0,0,0.25); }
.mnd-item.is-active { color: var(--accent); }
.mnd-item .mac-icon { font-size: 20px; flex-shrink: 0; }

.tb-brand-mob {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

.mob-nav-row {
  display: none;

  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  height: 100%;

  pointer-events: auto;
}
.mob-nav-scroll {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mob-nav-scroll::-webkit-scrollbar { display: none; }

.mob-nav-row.can-scroll-right .mob-nav-scroll {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent 100%);
}
.mob-nav-row.can-scroll-left .mob-nav-scroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px);
          mask-image: linear-gradient(to right, transparent 0, #000 36px);
}
.mob-nav-row.can-scroll-left.can-scroll-right .mob-nav-scroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.mnr-item {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: color 0.2s;
}
.mnr-item.is-active {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.hero:not(:has(.hero-thumb)) .hero-play,
.hero.is-empty .hero-play {
  display: none;
}

.section .rank-grid--home {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
  .section .rank-grid--home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .section .rank-grid--home { grid-template-columns: 1fr; }
}

.mac-icon{width:1em;height:1em;fill:currentColor;flex-shrink:0;}
