/*
Theme Name: TamilCine
Theme URI: https://example.com/tamilcine
Author: TamilCine
Description: A dense, dark movie and streaming-guide theme. Custom "Movie" post type with linked Genre, Director, Cast, Language, Year and Platform taxonomies, an official-platform watch ladder, lazy-loaded trailer lightbox and built-in AdSense slots.
Version: 1.12.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tamilcine
Tags: movies, streaming, dark, custom-post-type, two-columns, right-sidebar
*/

:root {
  --bg:#0a0a0e; --panel:#13131b; --panel-2:#1a1a24; --panel-3:#212130;
  --line:#2a2a3a; --line-soft:#20202c;
  --text:#eceff5; --dim:#8f93a6; --dim-2:#6b6f82;
  --red:#e11d3c; --red-dark:#a8112b; --red-glow:rgba(225,29,60,.35);
  --blue:#3aa0e0; --gold:#f5b722; --green:#31b05a; --orange:#e07d1e;
  --head-h:56px;

  /* ---- poster sizing knobs ----
     --card-w = minimum poster width; the grid auto-fits as many as will fit.
     Main column is ~898px wide, so at gap 14:
       140px -> 6 across   160px -> 5 across   210px -> 4 across   280px -> 3 across  */
  --card-w:140px;
  --poster-ratio:2/3;
  --grid-gap:14px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background:var(--bg); color:var(--text); font-size:14px; line-height:1.55;
  font-family:"Segoe UI",Roboto,-apple-system,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; display:block; }
.wrap { max-width:1280px; margin:0 auto; padding:0 14px; }

.screen-reader-text {
  border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; width:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; word-wrap:normal;
}
.skip-link:focus {
  position:fixed; top:8px; left:8px; z-index:200; clip:auto; clip-path:none;
  width:auto; height:auto; background:var(--red); color:#fff; padding:10px 16px; font-weight:800;
}

/* ---------- utility strip ---------- */
.util { background:#06060a; border-bottom:1px solid var(--line-soft); font-size:11.5px; color:var(--dim-2); }
.util-inner { display:flex; align-items:center; gap:18px; height:32px; flex-wrap:wrap; }
.util .spacer { flex:1; }
.util a:hover { color:var(--red); }
.util .dot { width:6px; height:6px; border-radius:50%; background:var(--green); display:inline-block; margin-right:6px; }
.util ul { list-style:none; display:flex; gap:18px; }

/* ---------- masthead ---------- */
.masthead { background:linear-gradient(180deg,#15151f,#0c0c12); border-bottom:1px solid var(--line); }
.masthead-inner { display:flex; align-items:center; gap:26px; padding:18px 0; flex-wrap:wrap; }
.brand { line-height:1; }
.brand-mark { font-size:34px; font-weight:900; letter-spacing:-1px; color:#fff; display:inline-block; }
.brand-mark b { color:var(--red); font-weight:900; }
/* max-height is overridden inline from the Customizer's logo-height setting. */
.brand-mark img { max-height:60px; width:auto; height:auto; }
.brand-mark .custom-logo-link { display:block; }
.brand-tag { display:block; margin-top:5px; font-size:10.5px; letter-spacing:2.6px; text-transform:uppercase; color:var(--dim-2); }
.mast-search { margin-left:auto; flex:1; max-width:420px; min-width:220px; }
.search-form { display:flex; border:1px solid var(--line); overflow:hidden; background:var(--panel); }
.search-form .search-field { flex:1; background:transparent; border:none; outline:none; color:var(--text); padding:10px 14px; font-size:13.5px; font-family:inherit; }
.search-form .search-field::placeholder { color:var(--dim-2); }
.search-form .search-submit { background:var(--red); border:none; color:#fff; padding:0 20px; font-size:13px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; cursor:pointer; font-family:inherit; }
.search-form .search-submit:hover { background:var(--red-dark); }

/* ---------- nav ---------- */
.navbar { background:var(--red); position:sticky; top:0; z-index:40; box-shadow:0 3px 14px rgba(0,0,0,.55); }
.navbar-inner { display:flex; align-items:stretch; flex-wrap:wrap; }
.navbar ul { list-style:none; display:flex; flex-wrap:wrap; width:100%; }
.navbar li { position:relative; }
.navbar a {
  display:flex; align-items:center; height:var(--head-h); padding:0 17px;
  font-size:13px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; color:#fff;
  border-right:1px solid rgba(0,0,0,.16);
}
.navbar li:first-child > a { border-left:1px solid rgba(0,0,0,.16); }
.navbar a:hover, .navbar .current-menu-item > a, .navbar .current_page_item > a { background:rgba(0,0,0,.28); }
.navbar .sub-menu {
  display:none; position:absolute; top:100%; left:0; min-width:200px; z-index:50;
  background:var(--red-dark); flex-direction:column; box-shadow:0 8px 20px rgba(0,0,0,.5);
}
.navbar li:hover > .sub-menu { display:flex; }
.navbar .sub-menu a { height:auto; padding:11px 16px; border-right:none; border-bottom:1px solid rgba(0,0,0,.16); }
.nav-toggle { display:none; background:rgba(0,0,0,.2); border:none; color:#fff; font-family:inherit; cursor:pointer; align-items:center; height:var(--head-h); padding:0 17px; font-size:13px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; }

/* ---------- layout ---------- */
.layout { display:grid; grid-template-columns:1fr 300px; gap:22px; align-items:start; margin:22px 0; }
.layout.no-side { grid-template-columns:1fr; }

/* ---------- ads ---------- */
.ad { margin:16px 0; }
.ad-label { display:block; font-size:9.5px; letter-spacing:2.2px; text-transform:uppercase; color:#464a5e; margin-bottom:5px; text-align:center; }
.ad-inner { display:flex; justify-content:center; }
.ad-box {
  width:100%;
  border:1px dashed #313145;
  background:repeating-linear-gradient(-45deg,#101018,#101018 11px,#14141e 11px,#14141e 22px);
  color:#565b73; font-size:11.5px; letter-spacing:1.4px; text-transform:uppercase;
  font-family:Consolas,"Courier New",monospace;
  display:flex; align-items:center; justify-content:center; text-align:center;
}
.ad-leader .ad-box { height:90px; }
.ad-rect .ad-box { height:250px; }
.ad-inarticle .ad-box { height:120px; }

/* ---------- section head ---------- */
.sec-head {
  display:flex; align-items:center; gap:12px;
  background:linear-gradient(180deg,var(--panel-3),var(--panel-2));
  border:1px solid var(--line); border-bottom:2px solid var(--red);
  padding:0 14px; min-height:44px; margin-top:6px; flex-wrap:wrap;
}
.sec-head h1, .sec-head h2 { font-size:14px; font-weight:900; letter-spacing:1.4px; text-transform:uppercase; color:#fff; }
.sec-head .accent { width:4px; height:20px; background:var(--red); flex-shrink:0; }
.sec-head .more { margin-left:auto; font-size:11.5px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--dim); }
.sec-head .more:hover { color:var(--red); }
.sec-body { background:var(--panel); border:1px solid var(--line); border-top:none; padding:16px 16px 20px; }
.term-desc { font-size:13px; color:var(--dim); margin:0 0 16px; }
.no-results { color:var(--dim); font-size:14px; padding:10px 0; }

/* ---------- poster grid ---------- */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(var(--card-w),1fr)); gap:var(--grid-gap); }
.card { background:var(--panel-2); border:1px solid var(--line-soft); display:block; }
.card:hover { border-color:var(--red); }
.card:hover .card-title { color:var(--red); }
.poster { position:relative; aspect-ratio:var(--poster-ratio); overflow:hidden; background:linear-gradient(155deg,#2a2036,#0e0e18); }
.poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.poster::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.6)); }
.poster-art {
  position:absolute; inset:0; display:flex; align-items:flex-end; padding:10px 9px;
  font-size:13.5px; font-weight:900; line-height:1.15; color:rgba(255,255,255,.9);
  text-shadow:0 2px 12px rgba(0,0,0,.7); letter-spacing:-.3px;
}
.card:hover .poster::before {
  content:"\25B6"; position:absolute; z-index:3; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:22px; color:#fff; background:rgba(225,29,60,.5); text-shadow:0 2px 10px rgba(0,0,0,.6);
}
/* Background and text colour are set inline, per movie, from the editor. */
.ribbon {
  position:absolute; z-index:2; top:0; left:0; background:var(--green); color:#04240e;
  font-size:9px; font-weight:900; letter-spacing:.6px; text-transform:uppercase; padding:3px 6px;
  max-width:88%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.stars { position:absolute; z-index:2; top:0; right:0; background:rgba(0,0,0,.78); color:var(--gold); font-size:9.5px; font-weight:800; padding:3px 6px; }
.card-body { padding:7px 8px 9px; }
.card-title {
  font-size:11.5px; font-weight:700; line-height:1.32; color:var(--text);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.card-sub { margin-top:4px; font-size:10px; color:var(--dim-2); display:flex; gap:6px; flex-wrap:wrap; }
.card-sub .lang { color:var(--blue); font-weight:700; }

/* ---------- pagination ---------- */
.pager { display:flex; justify-content:center; gap:5px; margin:22px 0 4px; flex-wrap:wrap; }
.pager .page-numbers {
  min-width:36px; height:36px; display:flex; align-items:center; justify-content:center;
  padding:0 12px; background:var(--panel-2); border:1px solid var(--line);
  font-size:12.5px; font-weight:800; color:var(--dim);
}
.pager .current, .pager a.page-numbers:hover { background:var(--red); border-color:var(--red); color:#fff; }

/* ---------- sidebar ---------- */
.side-block { margin-bottom:20px; }
.side-head {
  background:var(--panel-3); border:1px solid var(--line); border-bottom:2px solid var(--red);
  padding:11px 14px; font-size:12.5px; font-weight:900; letter-spacing:1.3px; text-transform:uppercase; color:#fff;
}
.side-body { background:var(--panel); border:1px solid var(--line); border-top:none; padding:12px 14px; }
.side-body:empty { display:none; }
.side-list { list-style:none; }
.side-list li { border-bottom:1px dashed var(--line-soft); }
.side-list li:last-child { border-bottom:none; }
.side-list li > a { display:flex; gap:10px; padding:10px 0; }
.side-list li:last-child > a { padding-bottom:2px; }
.side-thumb { width:44px; height:62px; flex-shrink:0; position:relative; overflow:hidden; background:linear-gradient(155deg,#2a2036,#0e0e18); }
.side-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.side-list h4 { font-size:12px; font-weight:700; line-height:1.35; }
.side-list a:hover h4 { color:var(--red); }
.side-list em { font-style:normal; display:block; margin-top:3px; font-size:10.5px; color:var(--dim-2); }
.cat-list { list-style:none; font-size:12.5px; }
.cat-list li { border-bottom:1px dashed var(--line-soft); }
.cat-list li:last-child { border-bottom:none; }
.cat-list a { display:flex; padding:8px 0; color:var(--dim); }
.cat-list a:hover { color:var(--red); }
.cat-list b { margin-left:auto; font-size:11px; background:var(--panel-3); border:1px solid var(--line); padding:1px 8px; color:var(--dim-2); font-weight:700; }
.cloud a, .side-body .tag-cloud-link { display:inline-block; font-size:11px !important; padding:5px 10px; margin:0 5px 5px 0; background:var(--panel-2); border:1px solid var(--line); color:var(--dim); }
.cloud a:hover, .side-body .tag-cloud-link:hover { background:var(--red); border-color:var(--red); color:#fff; }
.side-body ul { list-style:none; }
.side-body select { width:100%; background:var(--panel-2); color:var(--text); border:1px solid var(--line); padding:8px; font-family:inherit; }

/* ---------- article ---------- */
.crumbs { font-size:11.5px; color:var(--dim-2); padding:14px 0 2px; }
.crumbs a:hover { color:var(--red); }
.post { background:var(--panel); border:1px solid var(--line); }
.post-head { padding:18px 22px; border-bottom:1px solid var(--line-soft); }
.post-head h1 { font-size:25px; line-height:1.25; color:#fff; font-weight:800; letter-spacing:-.3px; }
.post-inner { padding:20px 22px 24px; }

.hero { display:grid; grid-template-columns:212px 1fr; gap:22px; }
.hero-poster { position:relative; aspect-ratio:var(--poster-ratio); border:1px solid var(--line); overflow:hidden; background:linear-gradient(155deg,#2a2036,#0e0e18); }
.hero-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.spec { width:100%; border-collapse:collapse; font-size:13px; }
.spec tr { border-bottom:1px solid var(--line-soft); }
.spec tr:nth-child(even) { background:var(--panel-2); }
.spec th { text-align:left; width:132px; padding:9px 12px; color:var(--red); font-weight:800; font-size:11.5px; letter-spacing:.9px; text-transform:uppercase; white-space:nowrap; vertical-align:top; }
.spec td { padding:9px 12px; color:#d6dae6; }
.spec td a { color:#d6dae6; border-bottom:1px dotted var(--dim-2); }
.spec td a:hover { color:var(--red); border-bottom-color:var(--red); }

.rate-row { display:flex; align-items:center; gap:12px; margin-top:14px; padding:12px 14px; background:var(--panel-2); border:1px solid var(--line); flex-wrap:wrap; }
.rate-score { font-size:26px; font-weight:900; color:var(--gold); line-height:1; }
.rate-out { font-size:11px; color:var(--dim-2); }
.rate-stars { position:relative; display:inline-block; color:#3a3d4d; font-size:15px; letter-spacing:2px; white-space:nowrap; }
.rate-stars-fill { position:absolute; top:0; left:0; overflow:hidden; color:var(--gold); white-space:nowrap; }
.rate-verdict { margin-left:auto; font-size:11px; font-weight:900; letter-spacing:1.2px; text-transform:uppercase; background:var(--green); color:#04240e; padding:6px 12px; }

.blk-title { display:flex; align-items:center; gap:10px; margin:26px 0 12px; }
.blk-title span { width:4px; height:19px; background:var(--red); flex-shrink:0; }
.blk-title h2 { font-size:15px; font-weight:900; letter-spacing:1.3px; text-transform:uppercase; color:#fff; }

/* ---------- watch-online platform ladder ---------- */
.stream { border:1px solid var(--line); background:var(--panel-2); }
.plat-cols, .plat-row {
  /* Last column is sized so the two buttons land one per line — the supplied
     margin-top on the second one assumes they stack. */
  display:grid; grid-template-columns:1.35fr .85fr 1.6fr .5fr 150px;
  gap:14px; align-items:center; padding:0 16px;
}
.plat-cols {
  height:32px; background:#0e0e16; border-bottom:1px solid var(--line);
  font-size:9px; font-weight:900; letter-spacing:1.1px; text-transform:uppercase; color:var(--dim-2);
}
.plat-row { min-height:62px; border-bottom:1px solid var(--line-soft); position:relative; padding-top:9px; padding-bottom:9px; }
.plat-row:last-of-type { border-bottom:none; }
.plat-row:hover { background:#1e1e2b; }
.plat-row::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--brand,var(--red)); }
.plat-name { font-size:12.5px; font-weight:800; color:#fff; letter-spacing:-.2px; text-transform:uppercase; line-height:1.3; }
.plat-name em { display:block; font-style:normal; font-size:10px; font-weight:600; color:var(--dim-2); letter-spacing:0; margin-top:3px; text-transform:uppercase; line-height:1.4; }
/* Chip wraps to a second line rather than squeezing the column. */
.qual {
  display:inline-block; font-size:9.5px; font-weight:900; letter-spacing:.6px;
  padding:4px 8px; background:var(--panel-3); border:1px solid var(--line); color:var(--text);
  border-radius:4px; text-align:center; line-height:1.4;
}
.qual.uhd { background:var(--gold); border-color:var(--gold); color:#231a02; }
.plat-audio { font-size:11px; color:#c3c8d6; }
.plat-audio strong { display:block; font-size:11.5px; font-weight:800; color:#fff; }
.plat-audio em { display:block; font-style:normal; font-size:10.5px; color:var(--dim); margin-top:2px; line-height:1.45; }
.plat-size { font-size:12px; font-weight:800; color:#fff; line-height:1.3; }
/* Container only. The buttons keep the padding and sizing given below; the
   min-width just stops a two-letter label from drawing a tiny button next to
   a long one. */
.plat-links { }
.plat-links .skyblue-button,
.plat-links .download-button { min-width:118px; text-align:center; }
.plat-soon { font-size:10.5px; color:var(--dim-2); }

/* ---------- buttons: supplied CSS, unmodified ---------- */
.skyblue-button {
    background-color: skyblue;
    color: black;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
}

/* Hover effects */
.skyblue-button:hover {
    background-color: deepskyblue;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    animation: pulse 1.5s infinite;
}

/* Click/Active state with light green color */
.skyblue-button:active {
    background-color: #90EE90; /* Light green color */
    transform: translateY(1px);
    animation: clickEffect 0.3s ease-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ripple effect on hover */
.skyblue-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.skyblue-button:hover::before {
    width: 200%;
    height: 200%;
}

/* Link specific styles */
a.skyblue-button {
    text-decoration: none !important;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: normal;
}

.download-button {
    background-color: #6B5B95;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    transform: translateY(0);
    margin-top: 5px;
}

.download-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    fill: white;
}

.download-button:hover {
    background-color: #8773BE;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    animation: pulse 1.5s infinite;
}

.download-button:active {
    background-color: #90EE90;
    transform: translateY(1px);
    animation: clickEffect 0.3s ease-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.download-button:hover::before {
    width: 200%;
    height: 200%;
}

a.download-button {
    text-decoration: none !important;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    line-height: normal;
    padding-left: 28px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 191, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
    }
}

/* Click effect animation */
@keyframes clickEffect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* ---------- banger list ---------- */
/* Container */
.banger-container {
    background: #ffffff;
    border: 1px solid #c4cde0;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Header */
.banger-header {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    animation: gradientMove 3s linear infinite;
    padding: 10px 14px;
    display: flex;
    align-items: center;
}

.shimmer-text {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.fire-icon {
    margin-right: 8px;
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* The Row */
.banger-row {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

.banger-row:last-child { border-bottom: none; }
.banger-row:hover {
    background: #f8faff;
    transform: translateX(2px);
}

/* The Link */
.banger-link {
    font-size: 13px;
    font-weight: 600;
    color: #1a0dab;
    text-decoration: none;
    line-height: 1.6;
    display: block;
}

.banger-link:hover {
    color: #3b82f6;
}

/* Animations */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ---------- trailer button + lightbox ---------- */
.trailer-cta { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.trailer-btn {
  display:inline-flex; align-items:center; gap:13px; cursor:pointer; font-family:inherit;
  background:var(--panel-2); border:1px solid var(--line); border-left:3px solid var(--red);
  padding:12px 22px 12px 18px; color:var(--text); text-align:left;
}
.trailer-btn:hover { background:var(--panel-3); border-color:var(--red); }
.trailer-btn .tb-play {
  width:36px; height:36px; border-radius:50%; background:var(--red); color:#fff; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:14px; padding-left:2px;
}
.trailer-btn:hover .tb-play { box-shadow:0 0 0 6px var(--red-glow); }
.trailer-btn strong { display:block; font-size:13px; font-weight:900; letter-spacing:.7px; text-transform:uppercase; }
.trailer-btn em { display:block; font-style:normal; font-size:11px; color:var(--dim-2); margin-top:2px; }

.modal { position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:22px; }
.modal[hidden] { display:none; }
.modal-back { position:absolute; inset:0; background:rgba(4,4,8,.9); }
.modal-box { position:relative; width:100%; max-width:940px; }
.modal-x {
  position:absolute; top:-38px; right:0; background:transparent; border:none; cursor:pointer;
  color:var(--dim); font-size:26px; line-height:1; font-family:inherit; padding:4px 8px;
}
.modal-x:hover { color:var(--red); }
.modal-frame {
  position:relative; aspect-ratio:16/9; background:#000; border:1px solid var(--line); overflow:hidden;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:20px;
}
.modal-frame iframe,
.modal-frame video { position:absolute; inset:0; width:100%; height:100%; border:0; background:#000; }
.modal-frame strong { color:#fff; font-size:15px; font-weight:800; }
.modal-frame p { font-size:12.5px; color:var(--dim); max-width:430px; }
.modal-cap { margin-top:10px; font-size:11.5px; color:var(--dim-2); }
body.no-scroll { overflow:hidden; }

/* ---------- screenshots ---------- */
.shots {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px;
}
.shot {
  position:relative; display:block; padding:0; border:1px solid var(--line); background:#0e0e16;
  cursor:zoom-in; overflow:hidden; font:inherit; text-align:left; color:inherit;
}
.shot img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; transition:transform .25s ease; }
.shot:hover img, .shot:focus-visible img { transform:scale(1.05); }
.shot-zoom {
  position:absolute; top:7px; right:7px; width:26px; height:26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(6,6,12,.72); color:#fff; font-size:13px; opacity:0; transition:opacity .2s ease;
}
.shot:hover .shot-zoom, .shot:focus-visible .shot-zoom { opacity:1; }
.shot-cap {
  display:block; padding:7px 9px; border-top:1px solid var(--line);
  font-size:11px; color:var(--dim); line-height:1.4;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* Pasted HTML — the markup comes from an image host, so the theme lays the
   links out itself rather than trusting whatever spacing came with them.
   Change --shots-html-cols to put more or fewer side by side. */
.shots-html {
  --shots-html-cols:2;
  margin-top:10px;
  display:grid; grid-template-columns:repeat(var(--shots-html-cols),1fr); gap:10px;
  align-items:start;
}
/* Grid items won't shrink below their content without this. */
.shots-html > * { min-width:0; }
/* Hosts pad their snippets with line breaks; in a grid each one would be an empty cell. */
.shots-html br { display:none; }
.shots-html a { display:block; line-height:0; border:1px solid var(--line); overflow:hidden; }
.shots-html img {
  display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover;
  transition:transform .25s ease;
}
.shots-html > img { border:1px solid var(--line); }
.shots-html a:hover img, .shots-html a:focus-visible img { transform:scale(1.05); }
.shots-html iframe, .shots-html embed, .shots-html video { max-width:100%; }
.shots-html p { grid-column:1/-1; margin:0; font-size:12px; color:var(--dim); line-height:1.6; }
.shots + .shots-html { margin-top:14px; }

.shot-stage { position:relative; display:flex; align-items:center; justify-content:center; }
/* Cap the image to the viewport so a tall still can't push the caption off-screen. */
.shot-stage img { max-width:100%; max-height:78vh; width:auto; height:auto; display:block; border:1px solid var(--line); }
.shot-nav {
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:44px; height:60px; border:0; cursor:pointer; font-family:inherit; font-size:30px; line-height:1;
  background:rgba(6,6,12,.66); color:#fff;
}
.shot-nav:hover { background:var(--red); }
.shot-nav[hidden] { display:none; }
.shot-nav.prev { left:0; }
.shot-nav.next { right:0; }
.shot-count { color:var(--dim-2); }

@media (max-width:640px) {
  .shots { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
  .shots-html { --shots-html-cols:1; gap:8px; }
}

/* ---------- prose ---------- */
.prose { font-size:14.5px; color:#d2d7e3; }
.prose p { margin-bottom:1.05em; }
.prose blockquote { border-left:3px solid var(--red); background:var(--panel-2); padding:12px 16px; margin:0 0 1.05em; color:var(--dim); font-size:14px; }
.prose h2, .prose h3, .prose h4 { color:#fff; margin:1.3em 0 .5em; }
.prose h2 { font-size:18px; } .prose h3 { font-size:16px; } .prose h4 { font-size:14.5px; }
.prose ul, .prose ol { margin:0 0 1.05em 1.3em; }
.prose li { margin-bottom:.35em; }
.prose a { color:var(--red); }
.prose a:hover { text-decoration:underline; }
.prose img { margin:0 0 1.05em; }
.prose table { width:100%; border-collapse:collapse; margin-bottom:1.05em; }
.prose th, .prose td { border:1px solid var(--line); padding:8px 10px; }
.alignleft { float:left; margin:0 18px 12px 0; }
.alignright { float:right; margin:0 0 12px 18px; }
.aligncenter { margin:0 auto 1.05em; }
.wp-caption-text { font-size:11.5px; color:var(--dim-2); margin-top:5px; }

.tagrow { margin-top:22px; padding-top:16px; border-top:1px solid var(--line-soft); }
.tagrow a { display:inline-block; font-size:11px; padding:5px 12px; margin:0 6px 6px 0; background:var(--panel-2); border:1px solid var(--line); color:var(--dim); }
.tagrow a:hover { background:var(--red); border-color:var(--red); color:#fff; }

/* ---------- 404 / page ---------- */
.pagebox { background:var(--panel); border:1px solid var(--line); padding:26px 24px; }
.pagebox h1 { font-size:24px; color:#fff; margin-bottom:12px; }

/* ---------- footer ---------- */
.footer { margin-top:36px; background:#06060a; border-top:2px solid var(--red); padding:30px 0 24px; }
.footer-cols { display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:28px; }
.footer h5, .footer .widget-title { font-size:11.5px; font-weight:900; letter-spacing:1.5px; text-transform:uppercase; color:#fff; margin-bottom:12px; }
.footer p, .footer li { font-size:12.5px; color:var(--dim-2); line-height:1.7; }
.footer ul { list-style:none; }
.footer a:hover { color:var(--red); }
.footer-base { margin-top:24px; padding-top:16px; border-top:1px solid var(--line-soft); font-size:11.5px; color:#4e5266; display:flex; gap:16px; justify-content:space-between; flex-wrap:wrap; }

/* ---------- responsive ---------- */
@media (max-width:1080px){ .layout { grid-template-columns:1fr; } }
@media (max-width:860px){ .hero { grid-template-columns:1fr; } .hero-poster { max-width:220px; } }
@media (max-width:720px){
  /* Phones keep the table shape rather than stacking: four narrow columns, one
     line per platform. Audio is the only value too long for a column of its
     own, so it drops to a thin second line under the name and its heading is
     hidden — everything else stays on the first line, aligned to the header. */
  .plat-cols, .plat-row {
    grid-template-columns:minmax(0,1fr) auto auto 92px;
    gap:4px 9px; padding:0 11px 0 14px;
  }
  .plat-cols { height:26px; font-size:8px; letter-spacing:.8px; }
  .plat-cols .col-audio { display:none; }

  .plat-row { min-height:0; padding-top:9px; padding-bottom:9px; }
  .plat-row .plat-name  { grid-column:1; grid-row:1; font-size:11.5px; }
  .plat-row .plat-qual  { grid-column:2; grid-row:1; }
  .plat-row .plat-size  { grid-column:3; grid-row:1; font-size:11px; }
  /* Spans both lines so a single button sits centred against the whole row. */
  .plat-row .plat-links { grid-column:4; grid-row:1/span 2; align-self:center; }
  .plat-row .plat-audio { grid-column:1/4; grid-row:2; }

  .plat-name em { font-size:9.5px; margin-top:2px; }
  /* One flowing line instead of two stacked blocks — the separator is drawn
     only when both halves are present. */
  .plat-audio { font-size:10px; }
  .plat-audio strong,
  .plat-audio em { display:inline; font-size:10px; margin:0; }
  .plat-audio strong + em::before { content:" · "; color:var(--dim-2); }

  .qual { font-size:9px; padding:3px 6px; letter-spacing:.4px; }
  .plat-links .skyblue-button,
  .plat-links .download-button {
    min-width:0; width:100%; font-size:10.5px; padding:7px 6px; letter-spacing:.3px;
  }
}
@media (max-width:640px){
  :root { --card-w:104px; --grid-gap:10px; }
  .footer-cols { grid-template-columns:1fr; }
  /* Direct child only — .navbar ul would also match .sub-menu and keep
     drop-downs collapsed after the parent menu opens. */
  .navbar-inner > ul { max-height:0; overflow:hidden; flex-direction:column; }
  .navbar-inner > ul.open { max-height:none; overflow:visible; }
  .navbar a { width:100%; border-bottom:1px solid rgba(0,0,0,.16); }
  .nav-toggle { display:flex; width:100%; justify-content:center; }
  .navbar .sub-menu { position:static; display:flex; box-shadow:none; }
  .navbar .sub-menu a { padding-left:32px; }
  .brand-mark { font-size:28px; }
  .post-head h1 { font-size:20px; }
  .modal-x { top:auto; bottom:-40px; right:50%; transform:translateX(50%); }
}
