/* ACS-Inspired Theme — Dark Navy Header + Indigo Accent + Light Gray Body */

:root {
    --ink-900: #0d0f14;
    --ink-800: #151821;
    --ink-700: #1e2233;
    --indigo: #4338ca;
    --indigo-hover: #3730a3;
    --indigo-light: #6366f1;
    --indigo-soft: rgba(67,56,202,0.15);
    --slate-100: #f1f3f7;
    --slate-200: #e4e7ed;
    --slate-300: #cdd2db;
    --slate-500: #6b7280;
    --slate-700: #374151;
    --white: #ffffff;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.13);
    --rad: 3px;
    --rad-md: 6px;
    --ease: all 0.22s ease;
    --max-w: 1060px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--slate-100);
    color: var(--ink-800);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== SITE HEADER ===== */
.gbl-header {
    background: var(--ink-900);
    border-bottom: 3px solid var(--indigo);
    padding: 11px 0;
}

.gbl-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hd-brand-link {
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.hd-site-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.hd-domain-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    border: 1.5px solid var(--indigo-light);
    border-radius: var(--rad);
    background: var(--indigo-soft);
}

.hd-domain-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--indigo-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hd-domain-val {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== CONTAINER ===== */
.pgwrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 14px;
}

.pgsect {
    padding: 7px 0;
}

/* ===== PROMO BANNER ===== */
.promo-slot {
    overflow: hidden;
    margin-bottom: 7px;
}

/* ===== CATEGORY NAV ===== */
.nav-board {
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-top: 3px solid var(--indigo);
    margin-bottom: 7px;
    overflow: hidden;
}

.nav-zone-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--slate-200);
}

.nav-zone-row:last-child {
    border-bottom: none;
}

.nav-zone-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--ink-800);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    flex-shrink: 0;
    border-right: 2px solid var(--indigo);
    letter-spacing: 0.3px;
}

.nav-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 10px;
    align-items: center;
    background: var(--slate-100);
}

.nav-zone-links a {
    display: inline-block;
    color: var(--slate-700);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rad);
    transition: var(--ease);
    background: var(--white);
    border: 1px solid var(--slate-300);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-zone-links a:hover {
    background: var(--indigo);
    color: var(--white);
    border-color: var(--indigo);
}

.nav-zone-links a.active {
    background: var(--indigo);
    color: var(--white);
    border-color: var(--indigo);
    font-weight: 600;
}

/* ===== SEARCH ===== */
.srch-bar {
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-left: 3px solid var(--indigo);
    padding: 12px 14px;
    margin-bottom: 7px;
}

.srch-bar form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.srch-bar input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 9px 13px;
    border: 1.5px solid var(--slate-300);
    border-radius: var(--rad);
    background: var(--slate-100);
    color: var(--ink-800);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.srch-bar input[type="text"]:focus {
    border-color: var(--indigo);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(67,56,202,0.10);
}

.srch-bar input[type="text"]::placeholder {
    color: var(--slate-500);
}

.srch-bar button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--rad);
    background: var(--indigo);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.srch-bar button:hover {
    background: var(--indigo-hover);
    box-shadow: var(--shadow-sm);
}

/* ===== HOT TAGS ===== */
.hotword-pool {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 11px 13px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    margin-bottom: 7px;
}

.hotword-pool a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--slate-100);
    border-radius: var(--rad);
    color: var(--slate-700);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
    border: 1px solid var(--slate-300);
}

.hotword-pool a:hover {
    background: var(--indigo);
    color: var(--white);
    border-color: var(--indigo);
}

/* ===== SECTION HEADING ===== */
.media-block {
    margin-bottom: 10px;
}

.blk-heading {
    margin-bottom: 11px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--slate-200);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.blk-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 46px;
    height: 2px;
    background: var(--indigo);
}

.blk-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink-800);
    letter-spacing: -0.2px;
    text-transform: uppercase;
    margin: 0;
}

.blk-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.blk-title a:hover {
    color: var(--indigo);
}

/* ===== MEDIA GRID ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.media-grid li {
    animation: fadeSlideUp 0.45s ease backwards;
}

.media-grid li:nth-child(1) { animation-delay: 0.04s; }
.media-grid li:nth-child(2) { animation-delay: 0.08s; }
.media-grid li:nth-child(3) { animation-delay: 0.12s; }
.media-grid li:nth-child(4) { animation-delay: 0.16s; }
.media-grid li:nth-child(5) { animation-delay: 0.20s; }
.media-grid li:nth-child(6) { animation-delay: 0.24s; }
.media-grid li:nth-child(7) { animation-delay: 0.28s; }
.media-grid li:nth-child(8) { animation-delay: 0.32s; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.media-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad);
    aspect-ratio: 600 / 350;
    background: var(--slate-200);
    border: 1px solid var(--slate-300);
}

.media-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.media-cover:hover img {
    transform: scale(1.06);
}

.media-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,15,20,0.72) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 1;
}

.media-cover:hover::after {
    opacity: 1;
}

.media-caption {
    padding: 7px 0 3px;
}

.media-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.media-caption h5 a {
    color: var(--ink-800);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-caption h5 a:hover {
    color: var(--indigo);
}

/* ===== DETAIL TITLE BAR ===== */
.dtl-title-strip {
    line-height: 1.8;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--white);
    border: 1px solid var(--slate-300);
    border-top: 3px solid var(--indigo);
}

.dtl-title-strip a {
    color: var(--indigo);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.dtl-title-strip b {
    color: var(--ink-800);
}

/* ===== INFO PANEL ===== */
.info-panel {
    font-size: 15px;
    line-height: 1.9;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    margin: 7px 0;
}

/* ===== CAPTURE FRAME ===== */
.capture-box {
    margin-top: 12px;
}

.capture-box picture,
.capture-box img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--slate-300);
}

/* ===== ACTION BUTTONS ===== */
.btn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    margin: 7px 0;
}

.act-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--indigo);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--rad);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    letter-spacing: 0.2px;
}

.act-btn:hover {
    background: var(--indigo-hover);
    box-shadow: var(--shadow-md);
}

/* ===== SHARE PANEL ===== */
.share-strip {
    background: var(--white);
    border: 1px solid var(--slate-300);
    padding: 13px 18px;
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-url-row {
    background: var(--slate-100);
    border: 1px solid var(--slate-300);
    border-radius: var(--rad);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 11px;
    color: var(--indigo);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.share-url {
    font-size: 12px;
    color: var(--slate-500);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 20px;
    background: var(--indigo);
    color: var(--white);
    border: none;
    border-radius: var(--rad);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.share-copy-btn:hover {
    background: var(--indigo-hover);
    box-shadow: var(--shadow-md);
}

.share-copy-btn:active { transform: scale(0.97); }
.share-icon { font-size: 15px; }

/* ===== PAGINATION ===== */
.pgnav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 16px 0;
}

.pg-a,
.pg-cur {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--rad);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 34px;
    text-align: center;
}

.pg-a {
    background: var(--white);
    color: var(--ink-800);
    border: 1px solid var(--slate-300);
}

.pg-a:hover {
    background: var(--indigo);
    border-color: var(--indigo);
    color: var(--white);
}

.pg-cur {
    background: var(--indigo);
    color: var(--white);
    border: 1px solid var(--indigo);
    cursor: default;
}

/* ===== FOOTER ===== */
.gbl-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--indigo);
    margin-top: 14px;
    background: var(--ink-900);
}

.gbl-footer p {
    margin: 5px 0;
    color: var(--slate-500);
    font-size: 12px;
}

.gbl-footer a {
    color: var(--slate-500);
    text-decoration: none;
    transition: var(--ease);
}

.gbl-footer a:hover {
    color: var(--indigo-light);
}

/* ===== FRIEND LINKS ===== */
.flink-block {
    padding: 11px 13px;
    background: var(--white);
    border: 1px solid var(--slate-300);
    margin-bottom: 7px;
}

.flink-block dl {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.flink-block dd {
    display: inline-block;
    margin: 0;
}

.flink-block a {
    color: var(--slate-700);
    text-decoration: none;
    font-size: 13px;
    padding: 3px 10px;
    border: 1px solid var(--slate-300);
    border-radius: var(--rad);
    display: inline-block;
    transition: var(--ease);
}

.flink-block a:hover {
    color: var(--indigo);
    border-color: var(--indigo);
}

/* ===== HOT HEADING ===== */
.hotblock-head {
    margin-bottom: 6px;
}

.hotblock-head strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== VIDEO PLAYER ===== */
.MacPlayer {
    background: #000;
    margin-bottom: 7px;
    overflow: hidden;
    border: 1px solid var(--slate-300);
}

/* ===== UTILITIES ===== */
.clearfix::after { content: ''; display: table; clear: both; }

.only-pc  { display: block; }
.only-mob { display: block; }

img[data-original] { background: var(--slate-200); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .pgwrap { padding: 0 9px; }
    .gbl-header { padding: 9px 0; }
    .gbl-header-row { gap: 10px; }
    .hd-site-name { font-size: 22px; }
    .hd-domain-box { padding: 4px 11px; gap: 8px; }
    .hd-domain-tag { font-size: 9px; }
    .hd-domain-val { font-size: 15px; }
    .pgsect { padding: 5px 0; }

    /* Mobile nav: 15% + 85% */
    .nav-zone-tag {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        letter-spacing: 0;
    }
    .nav-zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .nav-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .blk-title { font-size: 15px; }

    .srch-bar { padding: 9px 10px; }
    .srch-bar form { gap: 6px; }
    .srch-bar input[type="text"] { min-width: 90px; padding: 8px 10px; font-size: 13px; }
    .srch-bar button { padding: 8px 10px; font-size: 12px; }

    .media-caption { padding: 5px 0 2px; }
    .media-caption h5 { font-size: 12px; }

    .btn-row { padding: 11px 8px; gap: 8px; flex-wrap: nowrap; }
    .act-btn { padding: 9px 14px; font-size: 13px; }

    .share-strip { padding: 10px 11px; gap: 8px; flex-wrap: nowrap; margin: 5px 0; }
    .share-url-row { padding: 8px 10px; gap: 6px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 9px 12px; font-size: 12px; }
    .share-icon { font-size: 13px; }

    .pgnav { padding: 12px 0; gap: 4px; }
    .pg-a, .pg-cur { padding: 6px 10px; font-size: 12px; min-width: 30px; }

    .hotword-pool { padding: 9px 10px; gap: 5px; }
    .hotword-pool a { font-size: 12px; padding: 4px 10px; }

    .dtl-title-strip { font-size: 14px; padding: 12px 14px; }
    .info-panel { font-size: 14px; padding: 13px 14px; }
    .gbl-footer { padding: 14px 0; margin-top: 10px; }
}

@media (max-width: 480px) {
    .hd-site-name { font-size: 18px; }
    .hd-domain-val { font-size: 13px; }

    .nav-zone-tag { width: 15%; font-size: 10px; padding: 5px 1px; }
    .nav-zone-links { width: 85%; gap: 3px; padding: 5px 3px; }
    .nav-zone-links a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }

    .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .media-caption h5 { font-size: 12px; }
    .blk-title { font-size: 14px; }

    .srch-bar input[type="text"] { min-width: 70px; font-size: 12px; }
    .srch-bar button { padding: 8px 8px; font-size: 11px; }

    .btn-row { padding: 10px 6px; gap: 6px; }
    .act-btn { padding: 8px 10px; font-size: 12px; }

    .share-strip { padding: 8px 7px; gap: 5px; }
    .share-url-row { padding: 7px 8px; gap: 4px; }
    .share-label { font-size: 9px; }
    .share-url { font-size: 9px; }
    .share-copy-btn { padding: 7px 9px; font-size: 11px; }
}

@media (min-width: 769px) { .only-mob { display: none !important; } }
@media (max-width: 768px) { .only-pc  { display: none !important; } }
