* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
  background: #000;
  color: #fff;
}
/* ========== PC Header ========== */
.pc-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 28px;
  gap: 28px;
  z-index: 99;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.logo-img {
  width: 36px;
  height: 36px;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-wrap a {
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-wrap a:hover,
.nav-wrap a.active {
  color: #fff;
}
/* PC搜索框 */
.search-wrap-pc {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.search-form-pc {
  display: flex;
}
.search-input-pc {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px 0 0 6px;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.search-input-pc:focus {
  border-color: #444;
}
.search-btn-pc {
  background: #222;
  border: 1px solid #2a2a2a;
  border-left: none;
  color: #ddd;
  padding: 0 14px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background 0.2s;
  display:flex;
  align-items:center;
  justify-content:center;
}
.search-btn-pc:hover {
  background: #333;
}
.search-btn-pc img{
  width:18px;
  height:18px;
  filter:invert(1);
}
/* ========== Mobile Header ========== */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  width: 100%;
  background: #000;
  align-items: center;
  padding: 14px 16px;
  z-index: 1000;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s;
}
.mobile-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
}
.mobile-logo-img {
  width: 34px;
  height: 34px;
}
/* 移动端搜索按钮 */
.mobile-search-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index:10;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mobile-search-btn img{
  width:22px;
  height:22px;
  filter:invert(1);
}
/* 移动端搜索栏（展开） */
.mobile-search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left:0;
  width:100%;
  background:#000;
  padding:10px 16px;
  border-top:1px solid #1a1a1a;
}
.mobile-search-bar.open {
  display:block;
}
.search-form-mobile {
  display:flex;
}
.search-input-mobile {
  flex:1;
  background:#141414;
  border:1px solid #2a2a2a;
  color:#fff;
  padding:8px 12px;
  border-radius:6px 0 0 6px;
  outline:none;
}
.search-btn-mobile {
  background:#222;
  border:1px solid #2a2a2a;
  border-left:none;
  color:#ddd;
  padding:0 12px;
  border-radius:0 6px 6px 0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.search-btn-mobile img{
  width:18px;
  height:18px;
  filter:invert(1);
}
/* ========== Mobile Menu ========== */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  padding: 8px 20px 18px;
  border-top: 1px solid #1a1a1a;
  z-index: 998;
}
.mobile-menu a {
  display: block;
  color: #ddd;
  text-decoration: none;
  font-size: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #1f1f1f;
}
.mobile-menu a.active {
  color: #fff;
  font-weight: 600;
}
.mobile-menu.open {
  display: block;
}
/* Hamburger 变成 X */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ========== Breakpoint ========== */
@media (max-width: 768px) {
  .pc-header {
    display: none;
  }
  .mobile-header {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .search-wrap-pc {
    display:none;
  }
}

/* ========== 倒计时提示条（原样式，15 秒循环） ========== */
.notice-block {
  background: #111114;
  padding: 16px 20px;
  text-align: center;
  font-family: system-ui, sans-serif;
}
.notice-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.countdown {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.countdown #timer {
  display: inline-block;
  color: #ff3333;
  font-size: 32px;
  animation: bounce 0.9s infinite;
  margin: 0 4px;
}
@keyframes bounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@media (max-width:767px){
  .notice-text {
    font-size:14px;
  }
  .countdown {
    font-size:16px;
  }
  .countdown #timer {
    font-size:26px;
  }
}

/* ========== Browse 页 ========== */
body{
  background:#0f0f23;
  color:#fff;
}
.container{
  max-width:1400px;
  margin:0 auto;
  padding:48px 24px;
}
.breadcrumb{
  color:#b9bcd0;
  font-size:20px;
  margin-bottom:20px;
}
.breadcrumb a{
  color:#b9bcd0;
  text-decoration:none;
}
.breadcrumb span{
  margin:0 8px;
}
h1{
  font-size:72px;
  font-weight:700;
  line-height:1.1;
  margin-bottom:24px;
}
.desc{
  color:#c7cadf;
  font-size:24px;
  line-height:1.6;
  max-width:900px;
  margin-bottom:40px;
}

/* ========== 移动端适配 ========== */
@media (max-width:768px){
  .container{
    padding:32px 16px;
  }
  .breadcrumb{
    font-size:16px;
  }
  h1{
    font-size:44px;
  }
  .desc{
    font-size:18px;
  }
}

/* ========== 剧集网格 ========== */
.grid-container{
  max-width:1400px;
  margin:0 auto;
  padding:0 24px 60px;
}
.drama-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap:20px;
}
.drama-card{
  width:100%;
}
.card-img-wrap{
  width:100%;
  aspect-ratio: 3 / 4;
  border-radius:12px;
  overflow:hidden;
  margin-bottom:12px;
}
.card-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card-title{
  font-size:16px;
  font-weight:500;
  margin-bottom:6px;
  color:#fff;
  line-height:1.3;
}
.card-meta{
  font-size:13px;
  color:#b9bcd0;
}

/* 移动端：2个一行 */
@media (max-width:768px){
  .grid-container{
    padding:0 16px 40px;
  }
  .drama-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:16px;
  }
  .card-title{
    font-size:15px;
  }
  .card-meta{
    font-size:12px;
  }
}

/* ========== 底部 ========== */
.shortical-block > div {
  gap:12px;
}
@media (max-width: 767px) {
  .shortical-block > div {
    gap:12px !important;
  }
  .shortical-block img {
    width:36px !important;
    height:36px !important;
  }
  .shortical-block h2 {
    font-size:18px !important;
  }
  .shortical-block p {
    font-size:14px !important;
  }
}

/* Drama detail expansion feature */
#dramaDetailOverlay{display:none;position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.82);padding:18px;align-items:center;justify-content:center;overflow-y:auto}
#dramaDetailOverlay.is-open{display:flex}
#dramaDetailOverlay .detail-panel{position:relative;width:min(760px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;background:#17172d;color:#fff;border:1px solid #34344b;border-radius:16px;box-shadow:0 18px 65px rgba(0,0,0,.55);padding:28px}
#dramaDetailOverlay .detail-close{position:absolute;right:12px;top:10px;width:38px;height:38px;border:0;border-radius:50%;background:#34344b;color:white;font-size:28px;cursor:pointer;line-height:1}
#dramaDetailOverlay .detail-content{display:flex;gap:24px;align-items:flex-start;padding-top:14px}
#dramaDetailOverlay .detail-cover{width:38%;max-width:250px;aspect-ratio:3/4;object-fit:cover;border-radius:12px;flex-shrink:0}
#dramaDetailOverlay .detail-info{flex:1;min-width:0}
#dramaDetailOverlay .detail-info h2{font-size:26px;line-height:1.25;margin:0 0 12px}
#dramaDetailOverlay .detail-meta{font-size:14px;color:#b9bcd0;margin-bottom:18px}
#dramaDetailOverlay .detail-label{font-size:14px;font-weight:700;color:#fff;margin-bottom:8px}
#dramaDetailOverlay .detail-description{font-size:16px;line-height:1.75;color:#d7d8e5}
.drama-card .card-img-wrap{cursor:pointer}
.drama-card .card-img-wrap:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:600px){#dramaDetailOverlay .detail-panel{padding:20px}#dramaDetailOverlay .detail-content{flex-direction:column;align-items:center;gap:18px}#dramaDetailOverlay .detail-cover{width:min(65%,230px)}#dramaDetailOverlay .detail-info{width:100%}#dramaDetailOverlay .detail-info h2{font-size:22px}#dramaDetailOverlay .detail-description{font-size:15px}}

/* ========== Footer Links ========== */
.site-footer{background:#0b0b18;border-top:1px solid #23233a;padding:34px 24px 30px}
.footer-inner{max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:18px;align-items:center;text-align:center}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center}
.footer-links a{color:#b9bcd0;text-decoration:none;font-size:15px;padding:0 18px;border-right:1px solid #2e2e4a;transition:color .2s}
.footer-links a:last-child{border-right:none}
.footer-links a:hover{color:#fff}
.footer-copy{color:#7d8098;font-size:13px;line-height:1.6}
@media(max-width:768px){
  .footer-links a{font-size:13px;padding:0 10px}
  .site-footer{padding:26px 16px 24px}
}



/* ========== 语言选择器 ========== */
.shortical-language{position:relative;flex:0 0 auto;z-index:1200}
.shortical-language .language-shell{display:flex;align-items:center;gap:8px;width:auto;min-width:0;height:37px;padding:0 12px;border:1px solid #343447;border-radius:10px;background:linear-gradient(145deg,#242438,#11111b);box-shadow:0 3px 14px rgba(0,0,0,.22);color:#e8e8f3;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.shortical-language .language-shell:hover,.shortical-language .language-shell:focus-visible,.shortical-language.is-open .language-shell{border-color:#8f89ad;background:linear-gradient(145deg,#2c2c46,#161624);box-shadow:0 5px 18px rgba(0,0,0,.3);outline:none}
.shortical-language .language-shell:focus-visible{box-shadow:0 0 0 3px rgba(213,201,255,.18),0 5px 18px rgba(0,0,0,.3)}
.language-current-flag{display:flex;width:23px;height:16px;flex:none;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.16);border-radius:3px;background:#0c0c15}
.language-current-flag img{width:100%;height:100%;object-fit:cover;display:block}
.language-current-text{min-width:68px;max-width:112px;overflow:hidden;color:#f7f5ff;font-size:13px;font-weight:650;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.shortical-language .language-chevron{width:12px;height:12px;flex:none;color:#a9a4c1;transition:transform .2s}
.shortical-language.is-open .language-chevron{transform:rotate(180deg)}
.language-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:1201;display:grid;width:min(200px,calc(100vw - 32px));max-height:min(426px,calc(100vh - 120px));overflow:auto;gap:3px;padding:7px;border:1px solid #3a3a58;border-radius:15px;background:linear-gradient(180deg,rgba(33,33,54,.99),rgba(14,14,25,.99));box-shadow:0 20px 60px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.03) inset;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#575274 transparent}
.language-menu::-webkit-scrollbar{width:8px}
.language-menu::-webkit-scrollbar-thumb{border-radius:99px;background:#575274}
.language-menu[hidden]{display:none}
.language-option{display:grid;grid-template-columns:22px minmax(0,1fr) 16px;align-items:center;gap:8px;width:100%;min-height:38px;padding:6px 8px;border:0;border-radius:9px;background:transparent;color:#cfcbe3;font:inherit;font-size:13px;font-weight:550;text-align:left;cursor:pointer;transition:background .15s,color .15s}
.language-option:hover,.language-option:focus-visible{background:rgba(132,122,182,.17);color:#fff;outline:none}
.language-option.is-selected{background:linear-gradient(90deg,rgba(146,132,208,.28),rgba(146,132,208,.08));color:#fff}
.language-option-flag{display:flex;width:22px;height:15px;align-items:center;justify-content:center;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:3px;background:#0c0c15}
.language-option-flag img{width:100%;height:100%;object-fit:cover;display:block}
.language-option-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.language-option.is-selected::after{content:"✓";color:#d5c9ff;font-size:12px;font-weight:800}
.shortical-language .language-select{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.shortical-language--mobile{display:none}
@media(max-width:768px){
  .shortical-language--desktop{display:none}
  .shortical-language--mobile{display:block;margin-left:0}
  .shortical-language--mobile .language-shell{height:33px;gap:6px;padding:0 8px;border-radius:9px}
  .shortical-language--mobile .language-current-flag{width:20px;height:14px}
  .shortical-language--mobile .language-current-text{min-width:48px;max-width:68px;font-size:12px}
  .shortical-language--mobile .language-chevron{width:11px;height:11px}
  .shortical-language--mobile .language-menu{top:calc(100% + 7px);width:min(340px,calc(100vw - 20px));max-height:min(390px,calc(100vh - 90px));padding:7px;border-radius:13px}
  .shortical-language--mobile .language-option{min-height:38px;font-size:12px}
}
@media(max-width:370px){
  .shortical-language--mobile .language-current-text{min-width:40px;max-width:48px}
  .shortical-language--mobile .language-shell{padding:0 6px}
}
