/* =========================================================
   TopSexViet — SEXPRO-style theme
   Breakpoints: 0 (mobile) → 640 (sm) → 900 (md) → 1200 (lg) → 1400 (xl)
   ========================================================= */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #161616;
    --bg-card: #1e1e1e;
    --bg-hover: #2a2a2a;
    --bg-pill: #2a2a2a;
    --accent: #e50914;
    --accent-hover: #ff1a1a;
    --text-primary: #fff;
    --text-secondary: #b3b3b3;
    --text-muted: #777;
    --border: #262626;
    --radius: 6px;
    --container: 1280px;
    --header-h: 56px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bot: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --tap: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.porn-nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(229,9,20,.2); }
a:hover { color: var(--accent); }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; }
input[type=text], input[type=search], input[type=email], input[type=url], input[type=password], textarea, select { font-size: 16px; }

.porn-container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: max(12px, var(--safe-left));
    padding-right: max(12px, var(--safe-right));
}

/* =====================================================
   Header — mobile (hamburger + logo + search-toggle)
   ===================================================== */
.porn-header {
    position: relative;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding-top: var(--safe-top);
}
.porn-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--header-h);
    position: relative;
}

/* Split logo: "SEX" red + "PRO/..." white */
.porn-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.5px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    font-style: italic;
}
.porn-logo-a { color: var(--accent); }
.porn-logo-b { color: #fff; }

/* Hamburger */
.porn-nav-toggle {
    width: var(--tap);
    height: var(--tap);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}
.porn-nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
body.porn-nav-open .porn-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.porn-nav-open .porn-nav-toggle span:nth-child(2) { opacity: 0; }
body.porn-nav-open .porn-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.porn-search-toggle {
    width: var(--tap);
    height: var(--tap);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}
.porn-search-toggle svg { width: 22px; height: 22px; }

/* Off-canvas nav (mobile) */
.porn-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 340px;
    background: var(--bg-secondary);
    padding: calc(var(--safe-top) + 60px) 14px calc(var(--safe-bot) + 24px);
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 110;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}
body.porn-nav-open .porn-nav { transform: translateX(0); }

.porn-pillmenu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.porn-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 40px;
    background: var(--bg-pill);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: background .15s, color .15s;
}
.porn-pill:hover { background: var(--bg-hover); color: #fff; }
.porn-pill.is-active { background: var(--accent); color: #fff; }
.porn-pill.is-active:hover { background: var(--accent-hover); }
.porn-pill-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.porn-pill-icon svg { width: 100%; height: 100%; }
.porn-pill-flag {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.porn-pill-label { white-space: nowrap; }

/* Mobile search (slide down under header) */
.porn-search {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    z-index: 99;
}
.porn-search.is-open { display: flex; }
.porn-search input {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 0;
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 999px 0 0 999px;
    outline: none;
    height: var(--tap);
}
.porn-search button {
    padding: 0 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 999px 999px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap);
    font-weight: 600;
}

.porn-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 105;
    opacity: 0;
    transition: opacity .2s;
}
.porn-nav-backdrop:not([hidden]) { opacity: 1; }

/* =====================================================
   Main / sections
   ===================================================== */
.porn-main { padding: 16px 0 32px; }
.porn-section { margin-bottom: 28px; }
.porn-section-title, .porn-archive-title, .porn-single-title {
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}
.porn-section-title::after {
    content: '\203A';
    color: var(--accent);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
}
.porn-single-title { font-size: 20px; margin: 12px 0 14px; word-wrap: break-word; border: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.porn-single-title::after { content: none; }
.porn-archive-title::after { content: none; }
.porn-archive-desc { color: var(--text-secondary); margin-bottom: 12px; font-size: 14px; }

/* =====================================================
   Grid — mobile-first 2 col, scales up to 5 col
   ===================================================== */
.porn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* =====================================================
   Card
   ===================================================== */
.porn-card { background: transparent; transition: transform .15s; }
.porn-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
    border-radius: var(--radius);
}
.porn-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.porn-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #222, #111);
}

/* Country-style pill badge top-left */
.porn-badge-cat {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--c, var(--accent));
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    border-radius: 3px;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: .3px;
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.porn-badge-hot {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
}
.porn-views {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}
.porn-views svg { width: 12px; height: 12px; opacity: .9; }

.porn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.85);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: transform .2s, opacity .2s, background .2s;
    box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.porn-play svg { width: 26px; height: 26px; margin-left: 3px; }
.porn-card:hover .porn-play { opacity: 1; background: #fff; transform: translate(-50%, -50%) scale(1); }
.porn-card-body { padding: 8px 2px 4px; text-align: left; }
.porn-card-title {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    transition: color .15s;
}
.porn-card-title a { color: inherit; }
.porn-card:hover .porn-card-title,
.porn-card-title a:hover { color: var(--accent); }

/* =====================================================
   Breadcrumb
   ===================================================== */
.porn-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.porn-breadcrumb::-webkit-scrollbar { display: none; }
.porn-breadcrumb a { color: var(--text-secondary); }

/* =====================================================
   Player
   ===================================================== */
.porn-player { margin: 10px -12px 16px; background: #000; overflow: hidden; }
.porn-player-stage { position: relative; aspect-ratio: 16/9; background: #000; }
.porn-player-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.porn-player-frame iframe,
.porn-player-frame video { width: 100%; height: 100%; border: 0; background: #000; object-fit: cover; }
.porn-player-frame .jw-preview,
.porn-player-frame .jwplayer .jw-preview { background-size: cover !important; background-position: center !important; background-color: #000; }
.porn-play-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter .2s;
}
.porn-play-poster:hover { filter: brightness(1.1); }
.porn-play-poster .porn-play-icon { display: inline-flex; transition: transform .2s; }
.porn-play-poster:hover .porn-play-icon { transform: scale(1.08); }
.porn-play-poster.is-loading .porn-play-icon { animation: porn-spin 1s linear infinite; opacity: .7; }
@keyframes porn-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.porn-server-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.porn-server-tabs::-webkit-scrollbar { display: none; }
.porn-server-tab {
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    transition: background .15s, color .15s;
}
.porn-server-tab.is-active { background: var(--accent); color: #fff; }
.porn-player-empty { padding: 32px 20px; text-align: center; color: var(--text-muted); background: var(--bg-card); border-radius: var(--radius); }

/* =====================================================
   Single page
   ===================================================== */
.porn-single { max-width: 100%; }
.porn-single-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 8px 0 10px;
    line-height: 1.4;
    border: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    display: block;
    word-wrap: break-word;
}
.porn-single-title::after { content: none; }

/* Player bar (server tabs + stats) */
.porn-playerbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius) var(--radius);
    flex-wrap: wrap;
}
.porn-playerbar .porn-server-tabs {
    padding: 0;
    background: transparent;
    flex: 1 1 auto;
    min-width: 0;
}
.porn-playerbar-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}
.porn-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.porn-stat svg { width: 14px; height: 14px; opacity: .85; }

/* Tag pill row (PORN badge + permalink chip) */
.porn-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.porn-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .3px;
}
.porn-tag-pill--cat {
    background: var(--c, var(--accent));
    color: #fff;
    text-transform: uppercase;
}
.porn-tag-pill--cat:hover { color: #fff; filter: brightness(1.1); }
.porn-tag-pill--link {
    background: transparent;
    color: var(--accent);
    border: 0;
    padding: 5px 0;
    font-weight: 500;
}
.porn-tag-pill--link:hover { color: var(--accent-hover); text-decoration: underline; }

/* Description (collapsible) */
.porn-single-desc { margin: 8px 0 16px; }
.porn-desc-body {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
}
.porn-desc-body p { margin: 0 0 6px; }
.porn-desc-body.is-collapsed { max-height: 110px; overflow: hidden; position: relative; }
.porn-desc-body.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(13,13,13,0), var(--bg-primary));
}
.porn-content-toggle {
    margin-top: 8px;
    padding: 4px 12px;
    min-height: 30px;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 12px;
}
.porn-content-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Tax rows (Brandi Love style — yellow left border) */
.porn-tax-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    margin: 6px 0;
    border-left: 3px solid #f5a623;
    background: var(--bg-card);
    border-radius: 0 4px 4px 0;
    font-size: 13px;
}
.porn-tax-label { color: var(--text-muted); font-size: 12px; margin-right: 2px; }
.porn-tax-pill {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-hover);
    color: var(--text-primary);
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
}
.porn-tax-pill:hover { background: var(--accent); color: #fff; }

.porn-related h2 { font-size: 18px; margin: 24px 0 12px; }

/* =====================================================
   Pagination
   ===================================================== */
.porn-pagination { margin-top: 24px; display: flex; justify-content: center; }
.porn-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.porn-pagination a, .porn-pagination .current {
    min-width: var(--tap);
    min-height: var(--tap);
    padding: 0 14px;
    background: var(--bg-card);
    border-radius: 6px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.porn-pagination .current { background: var(--accent); color: #fff; }

.porn-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); }

/* =====================================================
   Comments
   ===================================================== */
.porn-comments { margin-top: 24px; padding: 16px; background: var(--bg-card); border-radius: var(--radius); }
.porn-comments h3 { margin-bottom: 12px; font-size: 16px; }
.porn-comment-list { list-style: none; padding: 0; }
.porn-comment-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 10px;
    min-height: var(--tap);
}
.comment-form textarea { min-height: 100px; }
.comment-form .submit { padding: 12px 22px; background: var(--accent); color: #fff; border-radius: 6px; font-weight: 600; min-height: var(--tap); }

/* =====================================================
   Buttons
   ===================================================== */
.porn-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 6px; font-weight: 600; min-height: var(--tap); }
.porn-btn-primary { background: var(--accent); color: #fff; }
.porn-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.porn-btn-secondary { background: var(--bg-hover); color: var(--text-primary); }

/* =====================================================
   Footer
   ===================================================== */
.porn-footer {
    margin-top: 32px;
    padding: 24px 0 calc(20px + var(--safe-bot));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}
.porn-footer .porn-container { padding-left: max(14px, var(--safe-left)); padding-right: max(14px, var(--safe-right)); }

/* Top tìm kiếm */
.porn-top-search { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.porn-top-search-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px;
    text-transform: none;
    letter-spacing: 0;
}
.porn-top-search-list { display: flex; flex-wrap: wrap; gap: 8px; }
.porn-top-search-chip {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.porn-top-search-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* About text */
.porn-about { padding: 18px 0; }
.porn-about p { margin: 0 0 8px; color: var(--text-secondary); }
.porn-about p:last-child { margin-bottom: 0; }
.porn-about strong { color: #fff; font-weight: 600; }
.porn-about-link { color: var(--accent); font-weight: 600; }
.porn-about-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* Bottom bar */
.porn-footer-bottom {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}
.porn-footer-bottom p { margin: 4px 0; }
.porn-footer-bottom a { color: var(--accent); font-weight: 600; }
.porn-footer-bottom a:hover { color: var(--accent-hover); }
.porn-disclaimer { color: var(--text-muted); opacity: .85; }

/* Tag cloud */
.porn-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.porn-tag-chip { display: inline-block; padding: 6px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); font-size: 13px; transition: background .15s, color .15s, border-color .15s; }
.porn-tag-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Sidebar widgets */
.porn-widget { background: var(--bg-card); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.porn-widget-title { font-size: 13px; margin-bottom: 10px; color: var(--text-primary); text-transform: uppercase; letter-spacing: .5px; }
.porn-cat-list { list-style: none; }
.porn-cat-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.porn-cat-list li:last-child { border: 0; }
.porn-cat-list span { color: var(--text-muted); font-size: 11px; }

/* =====================================================
   Responsive — sm (≥640px)
   ===================================================== */
@media (min-width: 640px) {
    :root { --header-h: 60px; }
    .porn-container { padding-left: max(16px, var(--safe-left)); padding-right: max(16px, var(--safe-right)); }
    .porn-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .porn-card-title { font-size: 13px; }
    .porn-logo { font-size: 24px; }
    .porn-section-title { font-size: 17px; }
    .porn-archive-title { font-size: 22px; }
    .porn-single-title { font-size: 24px; }
    .porn-player { margin: 12px 0 20px; border-radius: var(--radius); }
}

/* =====================================================
   Responsive — md (≥900px) — full SEXPRO header
   ===================================================== */
@media (min-width: 900px) {
    :root { --header-h: auto; }
    .porn-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }

    .porn-nav-toggle, .porn-search-toggle { display: none; }
    .porn-nav-backdrop { display: none !important; }

    /* Header: stacked rows. Logo on top, pill menu wraps, search inline at end. */
    .porn-header { padding: 8px 0 10px; }
    .porn-header-inner {
        height: auto;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 14px;
        row-gap: 10px;
    }
    .porn-logo {
        font-size: 28px;
        flex: none;
        text-align: left;
    }

    /* Pill menu — wrap to 2+ rows */
    .porn-nav {
        position: static;
        transform: none;
        width: auto;
        max-width: none;
        background: transparent;
        padding: 0;
        border: 0;
        overflow: visible;
        grid-column: 1 / -1;  /* full width row 2 */
        order: 3;
    }
    .porn-pillmenu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .porn-pill {
        padding: 8px 14px;
        min-height: 0;
        font-size: 13px;
        font-weight: 600;
    }
    .porn-pill-icon { width: 16px; height: 16px; }
    .porn-pill-flag { font-size: 14px; }

    /* Search inline at top row right */
    .porn-search {
        display: flex;
        position: static;
        padding: 0;
        border: 0;
        background: transparent;
        flex: 0 0 auto;
        grid-column: 3 / 4;
        order: 2;
    }
    .porn-search input {
        width: 260px;
        flex: 0 0 auto;
        height: 40px;
        padding: 8px 16px;
        font-size: 14px;
        background: var(--bg-pill);
        border-radius: 6px 0 0 6px;
    }
    .porn-search button {
        height: 40px;
        padding: 0 18px;
        min-width: 0;
        border-radius: 0 6px 6px 0;
        font-weight: 700;
    }

    .porn-card:hover { transform: translateY(-2px); }
    .porn-card:hover .porn-card-thumb img { transform: scale(1.05); }
    .porn-server-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
    .porn-content-toggle:hover { border-color: var(--accent); color: var(--accent); }
}

/* =====================================================
   Responsive — lg (≥1200px) — 5-col grid + wider search
   ===================================================== */
@media (min-width: 1200px) {
    .porn-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
    .porn-search input { width: 320px; }
}

/* =====================================================
   Reduced motion / no-hover
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (hover: none) {
    .porn-card:hover { transform: none; }
    .porn-card:hover .porn-card-thumb img { transform: none; }
}

/* =====================================================
   Ads
   ===================================================== */
.porn-ad-slot { margin: 12px 0; text-align: center; }
.porn-ad-slot img { max-width: 100%; height: auto; }
.porn-ad-banner-top { margin: 0 0 12px; }
.porn-ad-banner-bottom { margin: 12px 0 16px; }
.porn-ad-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; z-index: 5; }
.porn-ad-close:hover { background: var(--accent); }
.porn-ad-preplay { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.porn-ad-preplay-body { max-width: 90%; max-height: 90%; }
.porn-ad-preplay-body img { max-width: 100%; height: auto; }
.porn-ad-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.porn-ad-popup[hidden] { display: none; }
.porn-ad-popup-mask { position: absolute; inset: 0; background: rgba(0,0,0,.75); }
.porn-ad-popup-box { position: relative; max-width: 92vw; max-height: 90vh; background: var(--bg-card); border-radius: 8px; padding: 32px 12px 12px; overflow: auto; }
.porn-ad-popup-body img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.porn-ad-catfish { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: rgba(0,0,0,.9); padding: 6px 36px 6px 6px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); }
.porn-ad-catfish .porn-ad-close { top: 50%; transform: translateY(-50%); right: 6px; }
.porn-ad-catfish img { max-width: 100%; height: auto; max-height: 80px; }
.porn-ad-br { position: fixed; right: 12px; bottom: 12px; z-index: 9985; max-width: 320px; background: rgba(0,0,0,.85); border-radius: 8px; padding: 24px 6px 6px; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
.porn-ad-br img { max-width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
    .porn-ad-br { max-width: 200px; right: 8px; bottom: 8px; }
    .porn-ad-catfish img { max-height: 60px; }
}

/* =====================================================
   Mobile (<640px) tweaks
   ===================================================== */
@media (max-width: 639px) {
    .porn-container { padding-left: 10px; padding-right: 10px; }
    .porn-breadcrumb { font-size: 11px; margin: 8px 0; gap: 4px; }
    .porn-single-title { font-size: 14px; margin: 6px 0 8px; }
    .porn-archive-title { font-size: 18px; margin: 8px 0 10px; }
    .porn-player { margin: 6px -10px 10px; border-radius: 0; }
    .porn-playerbar { border-radius: 0; padding: 8px 10px; gap: 8px; }
    .porn-playerbar-stats { gap: 10px; font-size: 12px; }
    .porn-stat svg { width: 12px; height: 12px; }
    .porn-tag-pill { font-size: 11px; padding: 4px 8px; }
    .porn-desc-body { font-size: 13px; line-height: 1.65; }
    .porn-desc-body.is-collapsed { max-height: 90px; }
    .porn-tax-row { padding: 6px 8px; font-size: 12px; }
    .porn-tax-pill { font-size: 11px; padding: 3px 8px; }
    .porn-related h2 { font-size: 15px; margin: 18px 0 10px; }
    .porn-grid { gap: 8px; }
    .porn-card-title { font-size: 12px; }
    .porn-header-inner { padding: 0 6px; }
    .porn-logo { font-size: 20px; }
    .porn-ad-slot { margin: 8px 0; }
}
