:root {
  --neon-blue: #00AEEC; /* Bilibili Blue */
  --neon-mint: #FB7299; /* Bilibili Pink */
  --bg-main: #f1f2f3;   /* Light gray bg */
  --text-main: #18191C;
  --text-dim: #9499A0;
  --radius: 6px;
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { display: block; max-width: 100%; height: auto; border: 0; }
.wrap { width: 100%; max-width: 1400px; padding: 0 20px; margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  height: 64px;
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 24px; }
.brand { font-size: 18px; font-weight: bold; color: var(--neon-mint); display: flex; align-items: center; }
.brand b { color: var(--neon-blue); margin-left: 2px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 12px; font-size: 15px; color: var(--text-main);
}
.main-nav a:hover, .main-nav a.is-active {
  color: var(--neon-blue); 
}

/* Search */
.header-center { flex: 1; max-width: 500px; margin: 0 40px; }
.search-form {
  display: flex; background: #F1F2F3; border-radius: 8px; overflow: hidden;
  transition: background 0.2s; border: 1px solid transparent;
}
.search-form:focus-within { background: #fff; border-color: #E3E5E7; }
.search-form input {
  flex: 1; border: none; background: transparent; padding: 0 16px; height: 40px; outline: none; color: var(--text-main);
  font-size: 14px;
}
.search-form button {
  width: 44px; border: none; background: transparent; cursor: pointer; color: #505050; display: flex; align-items: center; justify-content: center;
}
.search-form button:hover { color: var(--neon-blue); }

/* Right User */
.header-right { display: flex; align-items: center; gap: 20px; }
.user-avatar-link { display: block; }
.user-avatar {
  width: 36px; height: 36px; background: #E3E5E7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.header-links { display: flex; align-items: center; gap: 16px; }
.header-links a {
  display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-dim); gap: 2px;
}
.header-links a:hover { color: var(--neon-blue); }
.header-links svg { stroke: currentColor; }
.btn-upload {
  background: var(--neon-mint); color: #fff; padding: 0 20px; height: 34px; border-radius: 6px;
  display: flex; align-items: center; font-size: 14px; font-weight: 500; transition: opacity .2s;
}
.btn-upload:hover { opacity: 0.9; color: #fff; }

/* HERO SECTION (Full Width Remade - IMG Tag Version) */
.home-hero-full {
  position: relative;
  width: 100%;
  height: 48vw; /* Keep 16:9-ish aspect ratio but full width */
  max-height: 680px;
  min-height: 480px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
}

/* Stage & Slides */
.hero-stage {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none; /* Let clicks pass unless active */
}
.hero-slide.active {
  opacity: 1; z-index: 2; pointer-events: auto;
}

/* Full Width Image (IMG TAG) */
.hero-bg-link {
  display: block; width: 100%; height: 100%;
}
.hero-img-full {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the area without distortion */
  object-position: center;
  transform: scale(1.02);
  transition: transform 6s linear; /* Slight zoom effect on active */
}
.hero-slide.active .hero-img-full {
  transform: scale(1);
}

/* Overlay & Info */
.hero-overlay-mask {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
  background: radial-gradient(circle at bottom left, rgba(0,0,0,0.6) 0%, transparent 50%),
              linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
}
.hero-content-container {
  position: absolute; inset: 0; pointer-events: none; z-index: 10;
}
.hero-info {
  position: absolute; bottom: 130px; left: 60px; /* Offset from left */
  max-width: 500px;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: auto;
  transform: translateY(20px); opacity: 0; transition: all 0.5s ease 0.1s;
}
.hero-slide.active .hero-info {
  transform: translateY(0); opacity: 1;
}
.hero-title { margin: 0 0 12px; font-size: 32px; font-weight: 800; line-height: 1.2; }
.hero-title a { color: #fff; text-decoration: none; }
.hero-desc {
  font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Thumbs (Centered & Overlay) */
.hero-thumbs-container {
  position: absolute; bottom: 20px; left: 0; right: 0; z-index: 20;
  pointer-events: none;
}
.hero-thumbs-list {
  display: flex; justify-content: center; align-items: flex-end; gap: 10px;
  pointer-events: auto;
}
.hero-thumb-item {
  position: relative;
  width: 140px; height: 80px;
  border-radius: 8px; overflow: hidden;
  cursor: pointer;
  opacity: 0.8;
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: #000;
}
.hero-thumb-item:hover { opacity: 1; }
.hero-thumb-item.active {
  width: 160px; height: 96px; /* Grow bigger */
  opacity: 1;
  transform: translateY(-8px); /* Lift up slightly */
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  margin: 0 8px; /* Push neighbors away slightly */
}
.thumb-img-box {
  width: 100%; height: 100%;
}
.thumb-img-box img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}
.hero-thumb-item:hover .thumb-img-box img { transform: scale(1.05); }

/* SVG Progress Border */
.thumb-progress {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 0.2s;
  z-index: 5;
}
.hero-thumb-item.active .thumb-progress { opacity: 1; }
.progress-border-bg {
  fill: none; stroke: rgba(255,255,255,0.2); stroke-width: 6;
  vector-effect: non-scaling-stroke;
}
/* Re-calculate dasharray for rect */
/* 2*(w+h), here dynamic but viewBox is 160x90 => p=500 */
.progress-border-bar {
  fill: none; stroke: #fff; stroke-width: 6;
  stroke-dasharray: 700; stroke-dashoffset: 700;
  vector-effect: non-scaling-stroke;
}
.radius-rect {
  rx: 8px; ry: 8px;
}

@keyframes dash {
  from { stroke-dashoffset: 700; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
  /* Banner: use 16:9 ratio (approx 56.25vw) but ensure min-height */
  .home-hero-full { height: 60vw; min-height: 220px; max-height: 400px; }
  .hero-info { bottom: 20px; left: 16px; width: auto; padding: 0; max-width: 80%; }
  .hero-thumbs-container { display: none; }
  .hero-title { font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
  .hero-desc { display: none; } /* Hide desc on mobile */
  .hero-btn { display: none; }
  
  /* Header Mobile Optimization */
  .header-inner { padding: 0 12px; justify-content: space-between; gap: 8px; }
  
  /* Logo */
  .brand { font-size: 16px; margin-right: 0; }
  .brand svg { width: 18px; height: 18px; margin-right: 4px; }
  
  /* Search: Auto width or small */
  .header-center { flex: 1; margin: 0 8px; max-width: 160px; }
  .search-form { height: 32px; }
  .search-form input { padding: 0 8px; font-size: 12px; }
  .search-form button { width: 32px; }
  
  /* Right Actions */
  .header-right { gap: 8px; }
  
  /* Hide text labels, keep icons */
  .header-links { gap: 8px; }
  .header-links a { gap: 0; }
  .header-links .label { display: none; }
  .header-links svg { width: 20px; height: 20px; stroke-width: 2px; }
  
  /* Avatar */
  .user-avatar { width: 30px; height: 30px; }
  .user-avatar svg { width: 16px; height: 16px; }
  
  /* Upload Btn: hide on small screens */
  .btn-upload { display: none; } 
}
/* Replaced old styles: */
/*
.hero-bg-layer {
...
}
.hero-thumbs {
...
}
*/
.hero-thumb-item {
  position: relative;
  flex: 1;
  height: 70px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0.7;
}
.hero-thumb-item:hover {
  opacity: 1;
}
.hero-thumb-item.active {
  opacity: 1;
  height: 84px; /* Grow larger */
  margin-bottom: 2px;
}

.thumb-img-box {
  width: 100%; height: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.thumb-img-box img {
  width: 100%; height: 100%; object-fit: cover;
}
.thumb-title {
  display: none; /* Hide title for clean look, or show on hover? Bilibili hides it usually in this mode or overlays it */
}

/* SVG Progress Border */
.thumb-progress {
  position: absolute;
  top: -3px; left: -3px;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-thumb-item.active .thumb-progress {
  opacity: 1;
}
.progress-border-bg {
  fill: none;
  stroke: rgba(255,255,255,0.2);
  stroke-width: 2;
}
.progress-border-bar {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 500; /* Approximate perimeter */
  stroke-dashoffset: 500;
  /* Animation is controlled by JS to reset correctly */
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}




/* SECTION GLOBAL */
.section { margin-bottom: 40px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.section-head h2 {
  font-size: 24px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px;
}
.section-head h2::before { /* Icon placeholder */
  content: ''; display: inline-block; width: 30px; height: 30px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2300AEEC"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9v-2h2v2zm0-4H9V7h2v5z"/></svg>'); 
}
.section-head .more {
  padding: 6px 14px; border: 1px solid #E3E5E7; border-radius: 6px; font-size: 13px; color: var(--text-dim); transition: all 0.2s;
}
.section-head .more:hover { background: #E3E5E7; color: var(--text-main); }

/* RANKING SECTION */
.rank-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.rank-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #fff;
}
.rank-card .poster {
  display: block; position: relative; aspect-ratio: 3/4; overflow: hidden;
}
.rank-card .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.rank-card:hover .poster img { transform: scale(1.05); }
.rank-badge {
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; 
  background: linear-gradient(135deg, #F9C84F, #F8B20E);
  color: #fff; font-size: 20px; font-weight: 800; font-style: italic;
  display: flex; align-items: center; justify-content: center;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.rank-badge.top-1 { background: linear-gradient(135deg, #ff4747, #ff1a1a); }
.rank-badge.top-2 { background: linear-gradient(135deg, #ff8f47, #ff6b1a); }
.rank-badge.top-3 { background: linear-gradient(135deg, #ffc847, #ffa81a); }
.rank-info { padding: 12px; }
.rank-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-desc { font-size: 13px; color: var(--text-dim); }

/* TIMELINE (Schedule) */
.timeline-wrap { background: #fff; padding: 20px; border-radius: 8px; }
.timeline-days {
  display: flex; border-bottom: 1px solid #E3E5E7; margin-bottom: 20px;
}
.timeline-day-btn {
  flex: 1; text-align: center; padding: 14px 0; cursor: pointer; color: var(--text-main); font-weight: 500;
  border-bottom: 3px solid transparent;
}
.timeline-day-btn.active { color: var(--neon-blue); border-bottom-color: var(--neon-blue); }
.timeline-day-btn .sub { display: block; font-size: 12px; font-weight: normal; color: var(--text-dim); margin-top: 4px; }
.timeline-content {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.timeline-item-empty { text-align: center; color: var(--text-dim); grid-column: 1 / -1; padding: 40px; }

/* CARD GRID (Common) */
.grid-cols-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 20px; }
.b-card { transition: transform 0.2s; position: relative; height: 100%; display: flex; flex-direction: column; }
.b-card:hover { transform: translateY(-4px); z-index: 2; }
.b-card-poster {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 8px; flex-shrink: 0;
}
.b-card-poster img { width: 100%; height: 100%; object-fit: cover; }
.b-card-mask {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #fff; font-size: 12px; text-align: right;
}
.b-card-title {
  font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text-main);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  height: auto; min-height: 40px; margin-bottom: 2px;
}
.b-card-meta { font-size: 12px; color: var(--text-dim); margin-top: auto; }

/* Responsive adjustments */
@media (max-width: 1400px) {
  .grid-cols-6 { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
  .grid-cols-6, .timeline-content, .hero-strip { grid-template-columns: repeat(4, 1fr); }
  .rank-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .header-center { display: none; }
  .grid-cols-6, .timeline-content, .hero-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-cols-6, .timeline-content { grid-template-columns: repeat(2, 1fr); }
}
.home-hero .hero-strip a {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
}
.home-hero .hero-strip a:hover { border-color: #7dc9ff; }
.home-hero .hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-swiper { width: 100%; }
.hero-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.hero-card { position: relative; min-height: 320px; scroll-snap-align: start; display: grid; align-items: end; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 8, 16, 0.86), rgba(4, 8, 16, 0.26)); }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-meta { position: relative; z-index: 1; padding: 22px; }
.hero-meta h1, .hero-meta h2 { margin: 0 0 8px; font-size: clamp(1.1rem, 2.2vw, 1.8rem); }
.section { margin: 22px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel); backdrop-filter: blur(8px); }
body.page-anime-home .section {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fff;
  backdrop-filter: none;
}
.section h2 { margin: 0 0 12px; font-size: 1.1rem; color: var(--text-main); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.grid-vod,.grid-art,.grid-topic,.grid-entity { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.card { border: 1px solid #e3e5e7; border-radius: 10px; overflow: hidden; background: #fff; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
body.page-anime-home .card {
  border: 1px solid #e8edf5;
  background: #fff;
}
.card:hover { transform: translateY(-3px); border-color: rgba(57, 211, 255, .45); }
.poster { display: block; width: 100%; position: relative; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-wide { aspect-ratio: 16 / 9; }

/* Ratio is controlled by card container; img width/height attrs are for CLS only. */
.grid-vod .poster,
.grid-entity .poster {
  aspect-ratio: 3 / 4;
}
.grid-art .poster,
.grid-topic .poster {
  aspect-ratio: 16 / 9;
}
.badge { position: absolute; right: 8px; bottom: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: #dff5ff; }
.card-body { padding: 10px; }
.card-title { margin: 0; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.page-anime-home .card-title { color: #111827; font-weight: 600; }
body.page-anime-home .card-meta { color: #667085; }
.card-meta { margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.panel { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-panel); }
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.detail-cover img { width: 300px; height: 450px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.detail-body h1 { margin: 0 0 10px; font-size: 1.45rem; }
.detail-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.play-wrap { display: grid; gap: 14px; }
.player-box { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
.episode-list { display: flex; flex-wrap: wrap; gap: 8px; }
.episode-list a { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: #d6ecff; font-size: 13px; }
.episode-list a.is-active { border-color: var(--neon-blue); color: #fff; }
.follow-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 10px; }
.follow-day { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(255, 255, 255, 0.02); }
.follow-day h3 { margin: 0 0 8px; font-size: 14px; color: #fff; }
.follow-day ul { margin: 0; padding: 0; list-style: none; }
.follow-day li { margin-bottom: 6px; font-size: 13px; }
.ad-slot { border: 1px dashed rgba(57, 211, 255, 0.45); border-radius: 12px; padding: 12px; margin: 14px 0; color: #98e9ff; background: rgba(57, 211, 255, 0.06); }
.input,.btn { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-main); padding: 0 12px; }
.btn { cursor: pointer; background: linear-gradient(90deg, var(--neon-blue), var(--neon-mint)); color: #00131f; font-weight: 700; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pagination a,.pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #d6ecff; }
.pagination .active { border-color: var(--neon-mint); color: #fff; }
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); padding: 20px 0 30px; color: var(--text-dim); font-size: 13px; }
body.page-anime-home .site-footer {
  border-top: 1px solid #e8edf5;
  color: #6b7280;
}
.is-light-mode * { animation: none !important; transition: none !important; backdrop-filter: none !important; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; } .detail-cover img { width: 220px; height: 330px; } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 20px); }
  .main-nav { display: none; }
  .hero-card { min-height: 250px; }
  .follow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero .hero-stage { min-height: 280px; padding: 20px; }
  .home-hero .hero-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Pages show.css*/
/* New SHOW Layout (Bilibili Style) */
.show-container {
  display: flex; gap: 30px; margin-top: 20px;
}
.show-main {
  flex: 1;
  min-width: 0; /* Prevent flex overflow */
}
.show-side {
  width: 280px;
  flex-shrink: 0;
}

/* Sort Bar */
.show-sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.sort-tabs {
  display: flex; gap: 24px;
}
.sort-item {
  color: var(--text-main); font-size: 14px; display: flex; align-items: center; gap: 4px;
  cursor: pointer; transition: color 0.2s;
}
.sort-item svg { color: #999; transition: transform 0.2s; }
.sort-item:hover, .sort-item.active { color: var(--neon-blue); }
.sort-item.active svg { color: var(--neon-blue); transform: rotate(180deg); } /* Simulate sort direction */
.sort-count { font-size: 12px; color: var(--text-dim); }
.sort-count .highlight { color: var(--neon-blue); margin: 0 4px; }

/* Filter Side Panel */
.filter-panel-header {
  font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center;
}
.filter-panel-header::before {
  content: ''; display: inline-block; width: 4px; height: 16px; background: var(--neon-blue);
  margin-right: 8px; border-radius: 2px;
}
.filter-group {
  margin-bottom: 24px;
  display: flex; align-items: flex-start;
}
.filter-key {
  width: 40px; font-size: 13px; color: #999; flex-shrink: 0; padding-top: 6px;
}
.filter-values {
  flex: 1; display: flex; flex-wrap: wrap; gap: 8px 12px;
}
.filter-val {
  font-size: 13px; color: var(--text-main); padding: 4px 10px; border-radius: 4px;
  line-height: 1.6;
}
.filter-val:hover { color: var(--neon-blue); }
.filter-val.active { background: rgba(0, 174, 236, 0.1); color: var(--neon-blue); font-weight: 500; }
.filter-values-wrap {
    max-height: 160px; overflow-y: auto; /* Limit height for Year if too many */
}
/* Scrollbar for year list */
.filter-values-wrap::-webkit-scrollbar { width: 4px; }
.filter-values-wrap::-webkit-scrollbar-thumb { background: #eee; border-radius: 4px; }

/* Card Improvements for Show Page */
.b-card-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 24px 8px 6px;
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 12px;
}
.stat-item { display: flex; align-items: center; gap: 4px; }
.b-card-badge {
    position: absolute; top: 6px; right: 6px;
    background: #FB7299; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .show-container {
    flex-direction: column; /* Stack vertically */
    margin-top: 10px; gap: 10px;
  }
  .show-side {
    width: 100%; order: -1; /* Move filters to top */
    background: #fff; padding: 10px 16px 0; border-radius: 8px; margin-bottom: 10px;
  }
  .filter-panel-header { display: none; } /* Hide "Filter" title on mobile */
  
  .filter-group {
    margin-bottom: 10px;
    align-items: center; /* Center align items */
    border-bottom: 1px dashed #f5f5f5;
    padding-bottom: 10px;
  }
  .filter-group:last-child { border-bottom: none; }
  
  .filter-key { width: auto; margin-right: 12px; padding-top: 0; font-size: 12px; }
  
  /* Horizontal Scroll for Mobile Filters */
  .filter-values {
    flex-wrap: nowrap; overflow-x: auto; 
    gap: 8px; 
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; 
  }
  .filter-values::-webkit-scrollbar { display: none; }
  
  .filter-val {
    flex-shrink: 0;
    font-size: 12px; padding: 4px 10px;
    background: #f6f7f8; color: #666;
  }
  .filter-val.active {
    background: var(--neon-blue); color: #fff;
  }
  
  /* Sort Bar Mobile */
  .show-sort-bar {
    padding: 0 16px; margin-bottom: 10px;
  }
  .sort-count { display: none; }
  .sort-tabs { width: 100%; justify-content: space-between; gap: 0; }
  .sort-item { font-size: 13px; }
  
  /* Grid tweak */
  .grid-vod { gap: 12px; grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 480px) {
    .grid-vod { grid-template-columns: repeat(2, 1fr) !important; }
}

/*addons.css*/
/* Filter Styling */
.filter-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid #e3e5e7;
}
.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.filter-row:last-child {
  border-bottom: none;
}
.filter-label {
  width: 60px;
  font-size: 14px;
  color: #999;
  flex-shrink: 0;
  padding-top: 4px; /* Align with first item row */
}
.filter-list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-item {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-item:hover {
  color: var(--neon-blue);
  background: rgba(0, 174, 236, 0.08); /* Light blue bg */
}
.filter-item.active {
  background: var(--neon-blue);
  color: #fff;
}
@media (max-width: 768px) {
  .filter-box { padding: 12px; }
  .filter-label { width: 40px; font-size: 13px; }
  .filter-list { gap: 4px; }
  .filter-item { font-size: 13px; padding: 4px 8px; }
}

/* Art Grid */
.art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.art-card {
    display: flex;
    flex-direction: column;
    background: #1f1b33;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    text-decoration: none;
}
.art-card:hover { transform: translateY(-3px); }
.art-cover {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    position: relative;
}
.art-cover img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.art-info { padding: 12px; }
.art-title {
    font-size: 14px; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 6px;
}
.art-meta { font-size: 12px; color: #888; }

/* Topic Grid */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .art-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.topic-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 0;
    padding-bottom: 45%; /* Wide banner */
    display: block;
}
.topic-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.topic-card:hover img { transform: scale(1.05); }
.topic-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 10px 15px;
    color: #fff;
}
.topic-title { font-size: 15px; font-weight: bold; }
.topic-count { font-size: 12px; color: #ccc; }

/* Infinite Scroll Spinner */
.spinner { animation: spin 2s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
