/*
Theme Name: FlixSyncHub
Theme URI: https://www.flixsynchub.site/
Author: FlixSyncHub
Author URI: https://www.flixsynchub.site/
Description: Asian Dramas, Movies & Anime streaming theme — dark premium design with gold and rose accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gwangreel
Tags: dark, entertainment, streaming, movies, anime, drama
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
*/

:root{
    --bg:#1b1023;
    --bg-deep:#130a1a;
    --surface:#241530;
    --surface-hi:#2f1c3d;
    --gold:#e3b23c;
    --rose:#c2487d;
    --cream:#f5efe6;
    --muted:#b6a6c2;
    --line:rgba(245,239,230,0.09);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  button, input, select, textarea { font-family: 'Fraunces', serif !important; }
  html{scroll-behavior:smooth;}
  body {
    background:var(--bg);
    color:var(--muted);
    font-family: 'Fraunces', serif !important;
    font-size:14px;
    line-height:1.8;
  }
  h1, h2, h3, h4, h5, h6, .brand, .comments-title, .comment-reply-title {
    font-family: 'Fraunces', serif !important;
    font-weight:600;
  }
  a{color:inherit;text-decoration:none;}
  img{max-width:100%;display:block;}
  .wrap{max-width:1240px;margin:0 auto;padding:0 28px;}

  /* ---------- NAVBAR ---------- */
  header{
    position:sticky;top:0;z-index:50;
    background:rgba(19,10,26,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  nav{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 28px;max-width:1240px;margin:0 auto;
    gap:20px;
    position:relative;
  }

  .menu-toggle{background:none;border:none;color:var(--cream);font-size:22px;cursor:pointer;}

  .brand{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    letter-spacing: 0.3px;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .brand .mark{
    width:12px;height:12px;border-radius:50%;
    background:radial-gradient(circle at 35% 35%,var(--gold),var(--rose));
    box-shadow:0 0 14px var(--gold);
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .header-search-btn{
    background:none;border:none;color:var(--cream);cursor:pointer;
    display:flex;align-items:center;justify-content:center;padding:4px;
    transition:color .2s;
  }
  .header-search-btn:hover{color:var(--gold);}

  .header-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-hi);
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 60;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  .header-search-dropdown.active {
    max-height: 80px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .header-search-dropdown input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
    outline: none;
  }
  .header-search-dropdown input::placeholder { color: var(--muted); }
  .header-search-close {
    background: none; border: none; color: var(--cream); font-size: 20px; cursor: pointer; padding: 4px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -300px;
    width: 270px;
    height: 100vh;
    background: #0f0a14;
    color: var(--cream);
    z-index: 100;
    padding: 10px 0;
    box-shadow: 4px 0 25px rgba(0,0,0,0.6);
    border-right: 1px solid var(--line);
    transition: left 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav.mobile-open .nav-links {
    left: 0;
  }

  .menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f5efe6;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
  }
  .menu-header:hover {
    background: rgba(255,255,255,0.03);
  }
  .menu-header svg {
    width: 12px;
    height: 12px;
    fill: #b6a6c2;
    transition: transform 0.25s ease;
  }
  .menu-item.open .menu-header svg {
    transform: rotate(180deg);
  }

  .submenu {
    max-height: 0;
    overflow: hidden;
    background: #09060c;
    transition: max-height 0.3s ease;
  }
  .submenu a {
    display: block;
    padding: 10px 18px 10px 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-transform: uppercase;
  }
  .submenu a:hover {
    color: var(--gold);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 99;
  }
  .mobile-overlay.open {display: block;}

  /* ---------- HERO ---------- */
  .hero{
    position:relative;overflow:hidden;
    padding:56px 0 60px;
    /* background removed */
  }
  .hero-grid{
    display:grid;grid-template-columns:1.05fr 0.95fr;gap:48px;align-items:center;
  }
  .eyebrow{
    display:inline-flex;align-items:center;gap:8px;
    font-size:12.5px;letter-spacing:1.5px;text-transform:uppercase;
    color:var(--gold);font-weight:600;margin-bottom:18px;
  }
  .eyebrow::before{content:"";width:22px;height:1px;background:var(--gold);}
  .hero h1{
    font-size:clamp(34px,4.4vw,54px);line-height:1.08;color:var(--cream);
    margin-bottom:18px;
  }
  .hero h1 em{
    font-style:italic;
    background:linear-gradient(120deg,var(--gold),var(--rose));
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .hero p{color:var(--muted);font-size:16px;max-width:460px;margin-bottom:28px;}
  .hero-cta{display:flex;gap:14px;flex-wrap:wrap;}
  .btn-primary{
    background:var(--cream);color:var(--bg-deep);font-weight:600;font-size:14.5px;
    padding:13px 26px;border-radius:999px;display:inline-flex;align-items:center;gap:8px;
    transition:transform .2s;
  }
  .btn-primary:hover{transform:translateY(-1px);}
  .btn-ghost{
    border:1px solid var(--line);color:var(--cream);font-weight:500;font-size:14.5px;
    padding:13px 24px;border-radius:999px;transition:border-color .2s,background .2s;
  }
  .btn-ghost:hover{border-color:var(--gold);background:rgba(227,178,60,0.06);}

  .spotlight{
    position:relative;aspect-ratio:3/4;border-radius:18px;overflow:hidden;
    background:linear-gradient(160deg,#3a2050,#1a0f28 70%);
    box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
  }
  .spotlight-slide{
    position:absolute;inset:0;opacity:0;visibility:hidden;
    transition:opacity 1s ease;
    background-color:var(--sc2,#1a0f28);
    background-image:var(--sc-img, linear-gradient(160deg,var(--sc1,#3a2050),var(--sc2,#1a0f28) 70%));
    background-size:cover;background-position:center;
  }
  .spotlight-slide.active{opacity:1;visibility:visible;}
  .spotlight-slide::before{
    content:"";position:absolute;inset:0;
    background:
      radial-gradient(circle at 70% 20%, rgba(227,178,60,0.25), transparent 45%),
      radial-gradient(circle at 20% 85%, rgba(194,72,125,0.3), transparent 50%);
  }
  .spotlight-slide::after{
    content:"";position:absolute;inset:0;
    background:linear-gradient(0deg, rgba(19,10,26,0.95) 0%, rgba(19,10,26,0.55) 45%, rgba(19,10,26,0.1) 78%);
  }
  .spotlight-label{
    position:absolute;top:18px;left:18px;z-index:3;
    background:rgba(19,10,26,0.65);backdrop-filter:blur(4px);
    padding:6px 12px;border-radius:999px;font-size:11.5px;
    letter-spacing:1px;text-transform:uppercase;color:var(--gold);font-weight:600;
    border:1px solid rgba(227,178,60,0.3);
  }
  .spotlight-dots{
    position:absolute;top:18px;right:18px;z-index:3;
    display:flex;gap:6px;
  }
  .spotlight-dots span{
    width:6px;height:6px;border-radius:50%;
    background:rgba(245,239,230,0.35);transition:background .3s,transform .3s;
  }
  .spotlight-dots span.active{background:var(--gold);transform:scale(1.3);}
  .spotlight-arrow{
    position:absolute;top:50%;transform:translateY(-50%);z-index:3;
    width:34px;height:34px;border-radius:50%;
    background:rgba(19,10,26,0.55);backdrop-filter:blur(4px);
    border:1px solid var(--line);color:var(--cream);
    display:flex;align-items:center;justify-content:center;
    font-size:15px;cursor:pointer;transition:background .2s,border-color .2s;
  }
  .spotlight-arrow:hover{background:rgba(227,178,60,0.2);border-color:var(--gold);}
  .spotlight-arrow.prev{left:14px;}
  .spotlight-arrow.next{right:14px;}
  .spotlight-info{
    position:absolute;left:0;right:0;bottom:0;padding:24px;z-index:2;
  }
  .spotlight-info h3{font-size:24px;color:var(--cream);margin-bottom:8px;line-height:1.15;}
  .spotlight-rating{
    display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:13px;color:var(--muted);
  }
  .spotlight-rating .star{color:var(--gold);font-weight:700;}
  .spotlight-info span.meta{font-size:13px;color:var(--muted);}
  .ep-progress{
    margin-top:12px;height:4px;border-radius:2px;background:rgba(245,239,230,0.15);overflow:hidden;
  }
  .ep-progress i{
    display:block;height:100%;width:62%;
    background:linear-gradient(90deg,var(--gold),var(--rose));
  }

  /* ---------- SECTION HEADERS ---------- */
  section{padding:52px 0;}
  .sec-head{
    display:flex;align-items:baseline;justify-content:space-between;
    margin-bottom:26px;gap:16px;flex-wrap:wrap;
  }
  .sec-head h2{font-size:26px;color:var(--cream);}
  .sec-head .num{color:var(--gold);font-style:italic;margin-right:8px;}
  .see-all{font-size:13.5px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px;}
  .see-all:hover{color:var(--gold);}

  /* ---------- CARD GRID ---------- */
  .grid{
    display:grid;grid-template-columns:repeat(5,1fr);gap:20px;
  }
  .card{
    background:var(--surface);border-radius:14px;overflow:hidden;
    border:1px solid var(--line);
    transition:transform .25s ease, border-color .25s ease;
  }
  .card:hover{transform:translateY(-6px);border-color:rgba(227,178,60,0.4);}
  .thumb{
    position:relative;aspect-ratio:2/3;
    display:flex;align-items:flex-end;
    background:linear-gradient(155deg,var(--tc1,#3a2050),var(--tc2,#1a0f28) 75%);
  }
  .thumb .rank{
    position:absolute;top:10px;left:10px;
    font-family:'Fraunces', serif;font-style:italic;font-weight:600;
    font-size:26px;color:rgba(245,239,230,0.85);
    text-shadow:0 2px 10px rgba(0,0,0,0.5);
  }
  .thumb .tag{
    position:absolute;top:10px;right:10px;
    background:rgba(19,10,26,0.6);color:var(--gold);
    font-size:10.5px;font-weight:700;letter-spacing:0.5px;
    padding:4px 8px;border-radius:6px;text-transform:uppercase;
  }
  .thumb .title-on-art{
    padding:14px;font-family:'Fraunces', serif;font-size:15px;color:var(--cream);
    background:linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    width:100%;
  }
  .card-info{padding:12px 14px 16px;}
  .card-info h4{font-size:14.5px;font-weight:600;color:var(--cream);margin-bottom:4px;}
  .card-meta{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;}
  .dot{width:3px;height:3px;border-radius:50%;background:var(--muted);}

  /* ---------- CATEGORY PILLS ---------- */
  .pills{
    display:flex;gap:12px;flex-wrap:nowrap;margin-bottom:30px;
    overflow-x:auto;scroll-snap-type:x proximity;
    -ms-overflow-style:none;scrollbar-width:none;
    padding-bottom:2px;
  }
  .pills::-webkit-scrollbar{display:none;}
  .pill{
    padding:9px 18px;border-radius:999px;border:1px solid var(--line);
    font-size:13.5px;color:var(--muted);font-weight:500;transition:all .2s;
    flex-shrink:0;scroll-snap-align:start;white-space:nowrap;cursor:pointer;
  }
  .pill.active,.pill:hover{
    border-color:var(--gold);color:var(--gold);background:rgba(227,178,60,0.08);
  }

  /* ---------- RECENT UPDATES TABS ---------- */
  .update-tabs{
    display:flex;gap:10px;margin-bottom:24px;border-bottom:1px solid var(--line);
  }
  .update-tab{
    background:none;border:none;color:var(--muted);font-family:'Fraunces', serif;
    font-size:14.5px;font-weight:600;padding:10px 4px 14px;cursor:pointer;
    position:relative;margin-right:22px;transition:color .2s;
  }
  .update-tab::after{
    content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;
    background:linear-gradient(90deg,var(--gold),var(--rose));
    transform:scaleX(0);transition:transform .2s;
  }
  .update-tab.active,.update-tab:hover{color:var(--cream);}
  .update-tab.active::after{transform:scaleX(1);}
  .update-panel{display:none;}
  .update-panel.active{display:grid;}

  /* ---------- STRIP BANNER ---------- */
  .strip{
    background:var(--surface);border:1px solid var(--line);border-radius:18px;
    padding:36px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
    background-image:linear-gradient(120deg, rgba(227,178,60,0.08), rgba(194,72,125,0.08));
  }
  .strip h3{font-size:22px;color:var(--cream);margin-bottom:8px;}
  .strip p{color:var(--muted);font-size:14px;max-width:420px;}

  /* ---------- FOOTER ---------- */
  footer{
    border-top:1px solid var(--line);padding:48px 0 28px;color:var(--muted);
    background:var(--bg-deep);
  }
  .footer-grid{
    display:grid;grid-template-columns:1.4fr repeat(2,1fr);gap:36px;margin-bottom:36px;
  }
  .footer-grid h5{color:var(--cream);font-size:13px;letter-spacing:0.5px;text-transform:uppercase;margin-bottom:14px;}
  .footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:9px;font-size:13.5px;}
  .footer-grid ul a:hover{color:var(--gold);}
  .footer-brand p{font-size:13.5px;max-width:280px;margin-top:10px;}
  .footer-bottom{
    display:flex;justify-content:space-between;align-items:center;
    padding-top:24px;border-top:1px solid var(--line);font-size:12.5px;flex-wrap:wrap;gap:12px;
  }

  /* ---------- SINGLE POST ---------- */
  .single-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(160deg, #3a2050, #1a0f28 70%);
    overflow: hidden;
  }
  .single-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
  }
  .single-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(27,16,35,0.6) 50%, rgba(27,16,35,0.2) 100%);
  }
  .single-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 0;
    width: 100%;
  }
  .single-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
  }
  .single-meta .cat-badge {
    background: rgba(227,178,60,0.15);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .single-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 28px;
  }
  .single-content h1 { font-size: 36px; margin-bottom: 24px; line-height: 1.15; }
  .single-content h2 { font-size: 24px; margin: 36px 0 16px; color: var(--cream); }
  .single-content h3 { font-size: 20px; margin: 28px 0 12px; color: var(--cream); }
  .single-content p { color: var(--muted); margin-bottom: 18px; }
  .single-content img { border-radius: 14px; margin: 24px 0; }
  .single-content a { color: var(--gold); text-decoration: underline; }
  .single-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--surface);
    border-radius: 0 12px 12px 0;
    color: var(--cream);
    font-style: italic;
  }
  .single-content ul, .single-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--muted);
  }
  .single-content li { margin-bottom: 8px; }
  .single-content pre {
    background: var(--bg-deep);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    color: var(--cream);
  }
  .single-content code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
  }
  .single-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .single-tags a {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: all .2s;
  }
  .single-tags a:hover {
    border-color: var(--gold);
    color: var(--gold);
  }

  /* Post navigation */
  .post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 28px 48px;
  }
  .post-nav-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    transition: border-color .2s;
  }
  .post-nav-item:hover { border-color: rgba(227,178,60,0.4); }
  .post-nav-item .label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 8px;
  }
  .post-nav-item .title {
    font-size: 15px;
    color: var(--cream);
    font-weight: 600;
  }
  .post-nav-item.next { text-align: right; }

  /* Comments */
  .comments-area {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 28px 48px;
  }
  .comments-area h3 { font-size: 22px; margin-bottom: 24px; }
  .comment-list { list-style: none; padding: 0; }
  .comment {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
  }
  .comment .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }
  .comment .comment-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }
  .comment .comment-author .fn {
    font-weight: 600;
    color: var(--cream);
    font-size: 14px;
  }
  .comment .comment-meta {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .comment .comment-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
  }
  .comment .children {
    list-style: none;
    padding-left: 20px;
    margin-top: 16px;
  }
  .comment-respond {
    margin-top: 32px;
  }
  .comment-respond .comment-reply-title {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--cream);
  }
  .comment-form label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
  }
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color .2s;
  }
  .comment-form input:focus,
  .comment-form textarea:focus {
    border-color: var(--gold);
  }
  .comment-form textarea {
    min-height: 120px;
    resize: vertical;
  }
  .comment-form .submit {
    background: var(--cream);
    color: var(--bg-deep);
    font-weight: 600;
    font-size: 14.5px;
    padding: 13px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform .2s;
  }
  .comment-form .submit:hover { transform: translateY(-1px); }

  /* ---------- BREADCRUMBS ---------- */
  .breadcrumbs {
    padding: 16px 0;
    font-size: 13px;
    color: var(--muted);
  }
  .breadcrumbs a { color: var(--muted); transition: color .2s; }
  .breadcrumbs a:hover { color: var(--gold); }
  .breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
  .breadcrumbs .current { color: var(--cream); }

  /* ---------- PAGE HEADER ---------- */
  .page-header {
    padding: 48px 0 24px;
    /* background removed */
  }
  .page-header h1 {
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--cream);
    margin-bottom: 10px;
  }
  .page-header p {
    color: var(--muted);
    font-size: 15px;
    max-width: 500px;
  }

  /* ---------- PAGINATION ---------- */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
  }
  .pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: all .2s;
  }
  .pagination a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(227,178,60,0.08);
  }
  .pagination .current {
    background: var(--gold);
    color: var(--bg-deep);
    border-color: var(--gold);
    font-weight: 600;
  }
  .pagination .dots {
    border: none;
    color: var(--muted);
  }
  .pagination .prev, .pagination .next {
    width: auto;
    padding: 0 16px;
  }

  /* ---------- 404 PAGE ---------- */
  .error-404 {
    text-align: center;
    padding: 80px 0 60px;
    /* background removed */
  }
  .error-404 .error-code {
    font-family: 'Fraunces', serif;
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 700;
    background: linear-gradient(120deg, var(--gold), var(--rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 16px;
  }
  .error-404 h1 {
    font-size: clamp(24px, 3.5vw, 36px);
    margin-bottom: 14px;
  }
  .error-404 p {
    color: var(--muted);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto 28px;
  }
  .error-404 .search-form {
    max-width: 420px;
    margin: 0 auto 48px;
    display: flex;
    gap: 10px;
  }
  .error-404 .search-form input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 20px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
    outline: none;
  }
  .error-404 .search-form input::placeholder { color: var(--muted); }
  .error-404 .search-form button {
    background: var(--cream);
    color: var(--bg-deep);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }

  /* ---------- SEARCH PAGE FORM ---------- */
  .search-page-form {
    max-width: 600px;
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
  }
  .search-page-form input {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 20px;
    color: var(--cream);
    font-family: inherit;
    font-size: 14px;
    outline: none;
  }
  .search-page-form input::placeholder { color: var(--muted); }
  .search-page-form button {
    background: var(--cream);
    color: var(--bg-deep);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }

  /* ---------- WITH SIDEBAR LAYOUT ---------- */
  .content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
  }
  .sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
  }
  .sidebar .widget h5 {
    font-size: 14px;
    color: var(--cream);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: 'Fraunces', serif;
  }
  .sidebar .widget ul {
    list-style: none;
    padding: 0;
  }
  .sidebar .widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
  }
  .sidebar .widget ul li:last-child { border-bottom: none; }
  .sidebar .widget ul a { color: var(--muted); transition: color .2s; }
  .sidebar .widget ul a:hover { color: var(--gold); }

  /* Thumb with image support */
  .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ---------- RESPONSIVE FIXES ---------- */
  @media(max-width:980px){
    .hero-grid{grid-template-columns:1fr;}
    .spotlight{max-width:340px;margin:0 auto;}
    .grid{grid-template-columns:repeat(3,1fr);}
    .footer-grid{grid-template-columns:1fr 1fr;}
    .content-sidebar-wrap{grid-template-columns:1fr;}
    .post-nav{grid-template-columns:1fr;}
  }
  @media(max-width:640px){
    .wrap{padding:0 18px;}
    nav{padding:14px 18px;position:relative;}

    .brand {
      font-size: 19px;
    }

    .hero{padding:36px 0 40px;}
    .update-tabs{gap:6px;margin-bottom:18px;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;}
    .update-tabs::-webkit-scrollbar{display:none;}
    .update-tab{font-size:13.5px;margin-right:16px;padding:8px 2px 12px;white-space:nowrap;}
    .eyebrow{font-size:11px;margin-bottom:14px;}
    .hero h1{font-size:30px;line-height:1.15;margin-bottom:14px;}
    .hero p{font-size:14.5px;margin-bottom:22px;}
    .hero-cta{flex-wrap:wrap;}
    .spotlight{max-width:100%;aspect-ratio:16/10;}
    .spotlight-info h3{font-size:20px;}

    section{padding:36px 0;}
    .sec-head h2{font-size:21px;}
    .sec-head{margin-bottom:18px;}
    .pills{gap:8px;margin-bottom:22px;}
    .pill{padding:7px 14px;font-size:12.5px;}

    .grid{grid-template-columns:repeat(2,1fr);gap:12px;}
    .thumb .rank{font-size:20px;}
    .thumb .title-on-art{font-size:13px;padding:10px;}
    .card-info{padding:10px 12px 12px;}
    .card-info h4{font-size:13px;}
    .card-meta{font-size:11px;}

    .strip{padding:24px;flex-direction:column;align-items:flex-start;text-align:left;}

    .footer-grid{grid-template-columns:1fr;gap:26px;}
    .footer-bottom{flex-direction:column;align-items:flex-start;}

    .single-hero { min-height: 240px; }
    .single-content { padding: 32px 18px; }
    .single-content h1 { font-size: 28px; }
    .comments-area { padding: 0 18px 32px; }
    .post-nav { padding: 0 18px 32px; }
    .page-header { padding: 32px 0 16px; }
    .error-404 { padding: 48px 0 36px; }
  }

  @media(max-width:400px){
    .grid{grid-template-columns:repeat(2,1fr);gap:10px;}
    .hero h1{font-size:26px;}
    .wrap{padding:0 14px;}
    nav{padding:12px 14px;}
  }

  /* ---------- NEW CPT SINGLE LAYOUT ---------- */
  .post-hero {
    padding: 48px 0;
    background: linear-gradient(160deg, #2b183d, #130a1a 80%);
    border-bottom: 1px solid var(--line);
  }
  .post-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }
  .poster-wrap {
    position: relative;
  }
  .poster {
    aspect-ratio: 2/3;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--surface-hi));
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 20px;
  }
  .poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
  }
  .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .post-type {
    font-size: 13px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  .post-title {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--cream);
  }
  .original-title {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .rating-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    background: rgba(0,0,0,0.2);
    padding: 12px 20px;
    border-radius: 12px;
    width: fit-content;
  }
  .rating-box {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .rating-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--cream);
  }
  .rating-source {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
  }
  .rating-count {
    font-size: 13px;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }
  .quick-info {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .info-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
  }
  .info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--cream);
  }
  .genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .genre {
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    font-size: 13px;
    color: var(--cream);
    transition: all .2s;
  }
  .genre:hover {
    border-color: var(--gold);
    color: var(--gold);
  }
  .synopsis {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 800px;
  }

  .detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    margin: 48px 0;
  }
  .content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
  }
  .content-card h2 {
    font-size: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .content-card h2 .num {
    color: var(--gold);
    font-size: 16px;
    opacity: 0.8;
  }
  .details-table {
    display: flex;
    flex-direction: column;
  }
  .detail-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .detail-row:last-child {
    border-bottom: none;
  }
  .detail-label {
    color: var(--muted);
    font-size: 14px;
  }
  .detail-value {
    color: var(--cream);
    font-size: 14px;
    font-weight: 500;
  }
  .cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
  .cast-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cast-image {
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--surface-hi);
    border: 1px solid var(--line);
  }
  .cast-info {
    text-align: center;
  }
  .cast-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
  }
  .season-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .season-item {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .season-name {
    font-weight: 600;
    color: var(--cream);
  }
  .season-meta {
    font-size: 13px;
    color: var(--muted);
  }
  .detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .sidebar-card {
    background: rgba(36, 21, 48, 0.5);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
  }
  .sidebar-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--cream);
    font-family: 'Fraunces', serif;
  }
  .sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sidebar-list li {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
  }
  .sidebar-list li strong {
    color: var(--cream);
    font-weight: 500;
  }

  /* Live Search */
  .live-search-results {
    position: absolute;
    top: 100%;
    left: 28px;
    right: 28px;
    background: var(--surface-hi);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    display: none;
    flex-direction: column;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 59;
  }
  .live-search-results.active {
    display: flex;
  }
  .live-search-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .2s;
  }
  .live-search-item:hover {
    background: rgba(227,178,60,0.08);
  }
  .live-search-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
  }
  .live-search-item .no-thumb {
    width: 40px;
    height: 60px;
    background: var(--surface);
    border-radius: 6px;
  }
  .live-search-item h4 {
    font-size: 14px;
    color: var(--cream);
    margin-bottom: 4px;
  }
  .live-search-item span {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
  }
  .searching, .no-results {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
  }

  @media(max-width: 980px) {
    .post-layout {
      grid-template-columns: 180px 1fr;
      gap: 32px;
    }
    .detail-layout {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }
  @media(max-width: 640px) {
    .post-layout {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .poster-wrap {
      width: 180px;
      margin: 0 auto;
    }
    .rating-row {
      margin: 0 auto 24px;
    }
    .quick-info {
      justify-content: center;
    }
    .genres {
      justify-content: center;
    }
    .content-card {
      padding: 20px;
    }
    .detail-row {
      grid-template-columns: 120px 1fr;
    }
  }







