/* ===== newtpl beauty 20260801 fqzy ===== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, form, input, textarea, select, button, img, table, thead, tbody, tr, th, td { margin: 0; padding: 0; border: 0; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
table { border-collapse: collapse; }
button, input { font: inherit; }

:root {
  --bg: #0b0e17;
  --bg2: rgba(18, 24, 42, .92);
  --bg3: #1a2240;
  --card: #141b31;
  --border: rgba(255,255,255,.08);
  --accent: #ff3d6e;
  --accent2: #ff7a3d;
  --gold: #ffd166;
  --text: #eef1ff;
  --text2: #97a0bf;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --trans: .2s ease;
  --grad: linear-gradient(135deg, #ff3d6e 0%, #ff7a3d 55%, #ffb347 100%);
}
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(255,61,110,.18), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(255,122,61,.12), transparent 50%),
    linear-gradient(180deg, #0d1222 0%, #0b0e17 40%, #090c14 100%);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }

#header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg2);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.header-inner {
  display: flex; align-items: center;
  min-height: 68px; gap: 18px; padding: 10px 0;
}
.logo { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.logo img {
  height: 42px; width: auto; max-width: 160px;
  object-fit: contain; background: transparent !important;
  border-radius: 0 !important; box-shadow: none !important;
}
.logo-text {
  font-size: 22px; font-weight: 800; letter-spacing: .5px;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-box { flex: 1; max-width: 520px; min-width: 0; }
.search-box form,
form#search {
  display: flex !important; align-items: center; gap: 12px; width: 100%;
  background: transparent !important; border: 0 !important; overflow: visible !important;
}
.search-box input,
.search-box .mac_wd,
form#search input {
  flex: 1; min-width: 0;
  height: 42px; padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text); outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.search-box input:focus,
form#search input:focus {
  border-color: rgba(255,61,110,.55);
  box-shadow: 0 0 0 4px rgba(255,61,110,.14);
  background: rgba(255,255,255,.07);
}
.search-box input::placeholder { color: var(--text2); }
.search-box button,
.search-box .mac_search,
form#search button {
  flex-shrink: 0; height: 42px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; font-weight: 700; font-size: 14px;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(255,61,110,.28);
  transition: transform var(--trans), filter var(--trans);
}
.search-box button:hover,
form#search button:hover { filter: brightness(1.05); transform: translateY(-1px); }

.header-stats { display: flex; gap: 14px; flex-shrink: 0; }
.header-stats span {
  font-size: 12px; color: var(--text2); white-space: nowrap;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.header-stats b { color: var(--accent); font-weight: 800; }

#nav {
  background: linear-gradient(90deg, #151c35 0%, #1a2140 45%, #1c1833 100%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; flex-wrap: nowrap; align-items: center;
  min-height: 46px; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-group { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-parent {
  padding: 0 12px; height: 46px; line-height: 46px;
  font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap;
}
.nav-child {
  padding: 0 12px; height: 46px; line-height: 46px;
  font-size: 13px; color: var(--text2); white-space: nowrap;
  border-radius: 999px; transition: color var(--trans), background var(--trans);
}
.nav-child:hover, .nav-child.active {
  color: #fff; background: rgba(255,61,110,.18);
}
.nav-divider { width: 1px; height: 18px; background: var(--border); margin: 0 6px; flex-shrink: 0; }

.breadcrumb { padding: 14px 0 6px; font-size: 13px; color: var(--text2); }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: .55; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 12px;
}
.section-head h2 {
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--grad);
}
.section-head a, .section-head .text-muted { font-size: 13px; color: var(--text2); }
.section-head a:hover { color: var(--accent); }

.list-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.list-head {
  display: flex; align-items: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text2); font-weight: 700;
}
.list-head .col-name { flex: 1; min-width: 0; }
.list-head .col-type { width: 120px; text-align: center; }
.list-head .col-action { width: 108px; text-align: center; }
.list-head .col-time { width: 120px; text-align: center; }

.video-list { border: 0; border-radius: 0; overflow: hidden; background: transparent; }
.video-item {
  display: flex; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background var(--trans);
}
.video-item:nth-child(even) { background: rgba(255,255,255,.015); }
.video-item:last-child { border-bottom: 0; }
.video-item:hover { background: rgba(255,61,110,.07); }
.video-item .fire-icon { width: 16px; margin-right: 8px; flex-shrink: 0; }
.video-item .col-name {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.video-item .col-name a:hover { color: var(--accent); }
.video-item .col-type { width: 120px; text-align: center; font-size: 12px; color: var(--text2); }
.video-item .col-action { width: 108px; text-align: center; }
.video-item .col-action a {
  display: inline-block; padding: 5px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 6px 14px rgba(255,61,110,.22);
  transition: transform var(--trans), filter var(--trans);
}
.video-item .col-action a:hover { filter: brightness(1.06); transform: translateY(-1px); }
.video-item .col-time {
  width: 120px; text-align: center; font-size: 12px;
  color: #ff8fab; font-variant-numeric: tabular-nums;
}

.notice-panel {
  background: linear-gradient(180deg, rgba(26,33,58,.95), rgba(18,24,42,.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 16px 0; overflow: hidden;
  box-shadow: var(--shadow);
}
.notice-panel .panel-head {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, rgba(255,61,110,.14), transparent);
}
.notice-panel .panel-head h4 {
  font-size: 15px; font-weight: 800; color: #fff !important;
  background: transparent !important;
}
.notice-panel .panel-body { padding: 16px 18px; }
.notice-panel .panel-body p { font-size: 13px; color: var(--text2); margin-bottom: 8px; line-height: 1.75; }
.notice-panel .panel-body p:last-child { margin: 0; }
.notice-panel .panel-body a { color: var(--accent); }
.notice-panel .panel-body a:hover { text-decoration: underline; }
.notice-grid { margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.notice-row {
  display: flex; align-items: baseline; gap: 10px; font-size: 13px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.04);
}
.notice-label { flex-shrink: 0; width: 96px; color: var(--text2); font-size: 12px; font-weight: 700; }
.notice-row a { color: var(--accent); word-break: break-all; }
.notice-val { color: var(--text); }
.notice-alert {
  margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: rgba(255,61,110,.08); border: 1px solid rgba(255,61,110,.28);
}
.notice-alert-title { display: block; font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.notice-alert p { font-size: 13px; color: var(--text2); margin-bottom: 4px; line-height: 1.8; }
.notice-strike { color: #666; text-decoration: line-through; font-size: 12px; }
.notice-new { color: var(--gold); font-size: 15px; }

/* DETAIL landscape cover */
.detail-section { padding: 12px 0 8px; }
.detail-card {
  background: linear-gradient(160deg, rgba(28,36,64,.96), rgba(16,21,38,.98));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 22px;
  align-items: start;
  box-shadow: var(--shadow);
}
.detail-poster {
  width: 100% !important;
  max-width: none !important;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  background: #0a0d16;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  position: relative;
}
.detail-poster::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 36%;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent);
  pointer-events: none;
}
.detail-poster img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 {
  font-size: 24px; font-weight: 800; margin-bottom: 14px; line-height: 1.35;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.detail-meta-item {
  display: inline-flex; gap: 6px; font-size: 13px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}
.detail-meta-label { color: var(--text2); }
.detail-meta-value { color: var(--text); }
.detail-desc {
  font-size: 13px; color: var(--text2); line-height: 1.85;
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.04);
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; color: #fff; border-radius: 999px;
  font-size: 14px; font-weight: 800; background: var(--grad);
  box-shadow: 0 10px 22px rgba(255,61,110,.28);
  transition: transform var(--trans), filter var(--trans);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border); color: var(--text2);
  background: rgba(255,255,255,.03);
  transition: all var(--trans);
}
.btn-secondary:hover { border-color: rgba(255,61,110,.5); color: #fff; }

.playlist-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-top: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.playlist-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, rgba(255,61,110,.1), transparent);
}
.playlist-head h3 { font-size: 15px; font-weight: 800; }
.playlist-source { font-size: 12px; color: var(--text2); }
.playlist-grid {
  padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 8px;
  max-height: 360px; overflow-y: auto;
}
.ep-btn {
  padding: 7px 14px; border-radius: 8px;
  background: var(--bg3); color: var(--text2);
  font-size: 12px; border: 1px solid var(--border);
  transition: all var(--trans); white-space: nowrap;
}
.ep-btn:hover { border-color: var(--accent); color: var(--accent); }
.ep-btn.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.copy-all-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--border); color: var(--text2);
  border-radius: 999px; font-size: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); transition: all var(--trans);
}
.copy-all-btn:hover { border-color: var(--accent); color: var(--accent); }

.addr-list { padding: 0 18px 12px; }
.addr-item {
  display: flex; align-items: center; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06); gap: 16px; flex-wrap: nowrap;
}
.addr-item:last-of-type { border: none; }
.addr-text {
  flex: 1; min-width: 0; font-size: 13px; color: #ff7a9a;
  word-break: break-all; line-height: 1.6; cursor: pointer;
}
.addr-text:hover { opacity: .8; }
.addr-play-btn {
  flex-shrink: 0; display: inline-block; padding: 7px 16px;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: all var(--trans);
}
.addr-play-btn:hover { background: var(--accent); color: #fff; }
.addr-footer {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 0 4px;
}
.addr-tip { font-size: 12px; color: var(--text2); }

.player-section { padding: 12px 0; }
.player-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.player-wrap .MacPlayer,
.player-wrap #playleft,
.player-wrap iframe,
.player-wrap video {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  border: 0; display: block;
}
.player-info {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.player-title { font-size: 16px; font-weight: 800; }
.player-subtitle { font-size: 13px; color: var(--text2); margin-top: 4px; }
.player-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.player-nav a {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text2); font-size: 13px;
  background: rgba(255,255,255,.03); transition: all var(--trans);
}
.player-nav a:hover { border-color: var(--accent); color: #fff; }

.search-banner {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px;
}
.search-keyword { font-size: 16px; font-weight: 800; }
.search-keyword em { color: var(--accent); font-style: normal; }
.search-count { font-size: 13px; color: var(--text2); margin-top: 4px; }

.paging {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 8px; padding: 28px 0;
}
.paging a, .paging span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 10px; font-size: 13px;
  border: 1px solid var(--border); color: var(--text2);
  background: rgba(255,255,255,.03); transition: all var(--trans);
}
.paging a:hover { border-color: var(--accent); color: #fff; }
.paging .current {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 800;
}
.paging .disabled { opacity: .4; cursor: not-allowed; }

#footer {
  background: rgba(12,16,28,.92);
  border-top: 1px solid var(--border);
  margin-top: 48px; padding: 28px 0 32px; text-align: center;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.footer-links a { font-size: 13px; color: var(--text2); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text2); line-height: 2; }
.footer-disclaimer {
  font-size: 11px; color: rgba(151,160,191,.55);
  max-width: 760px; margin: 8px auto 0; line-height: 1.8;
}

.clear { clear: both; }
.text-red { color: var(--accent); }
.text-muted { color: var(--text2); }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb16 { margin-bottom: 16px; }

.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.vod-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.vod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,61,110,.45); }
.vod-card-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; }
.vod-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vod-card:hover .vod-card-thumb img { transform: scale(1.05); }
.vod-card-body { padding: 10px 12px 12px; }
.vod-card-title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.vod-card-meta { font-size: 11px; color: var(--text2); display: flex; justify-content: space-between; gap: 8px; }

.banner-section { padding: 20px 0 0; }
.banner-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.swiper-wrap { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7; background: var(--bg3); }
.side-update { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

@media (max-width: 860px) {
  .detail-card {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    gap: 14px !important;
  }
  .detail-poster {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }
  .detail-poster img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
  }
  .detail-info h1 { font-size: 18px; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 10px !important; }
  .header-inner { flex-wrap: wrap !important; height: auto !important; min-height: 0 !important; gap: 10px !important; }
  .search-box { flex: 1 1 100% !important; max-width: none !important; order: 3 !important; }
  .header-stats { display: none !important; }
  .nav-inner { overflow-x: auto !important; white-space: nowrap !important; }
  .nav-group { display: inline-flex !important; }
  .nav-parent, .nav-child { font-size: 13px !important; padding: 0 10px !important; }
  .list-head .col-type, .video-item .col-type { display: none !important; }
  .list-head .col-name, .video-item .col-name {
    flex: 1 !important; min-width: 0 !important; white-space: normal !important; line-height: 1.45 !important;
  }
  .list-head .col-time, .video-item .col-time { width: 78px !important; font-size: 11px !important; text-align: right !important; }
  .list-head .col-action, .video-item .col-action { width: 68px !important; }
  .video-item .col-action a { padding: 4px 8px !important; font-size: 12px !important; }
  .video-item { padding: 10px 10px !important; }
  .banner-grid { grid-template-columns: 1fr; }
  .player-info { flex-direction: column; align-items: flex-start; }
  .addr-item { gap: 10px; }
  .addr-play-btn { padding: 6px 12px; }
}
