/* Tech Media Site - Dark Navy & Gold Theme */

:root {
    --gold: #f5a623;
    --gold-dark: #d4881a;
    --gold-light: #ffc24a;
    --navy: #0b1120;
    --navy2: #0e1a30;
    --navy3: #121f38;
    --navy4: #172545;
    --navy5: #1c2d52;
    --steel: #1e3060;
    --border-dim: #1a2d50;
    --border-gold: rgba(245, 166, 35, 0.3);
    --txt-primary: #f0f4ff;
    --txt-secondary: #8fa3c4;
    --txt-muted: #4a6080;
    --white: #ffffff;
    --grad-gold: linear-gradient(135deg, #f5a623 0%, #ffc24a 100%);
    --shadow-s: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-m: 0 4px 18px rgba(0,0,0,0.6);
    --shadow-gold: 0 4px 16px rgba(245,166,35,0.25);
    --r1: 3px;
    --r2: 6px;
    --r3: 10px;
    --ease: all 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--navy);
    color: var(--txt-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.tk-header {
    background: var(--navy2);
    border-bottom: 2px solid var(--gold);
    padding: 0.65rem 0;
}

.tk-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tk-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
    justify-content: center;
}

.tk-logo-anchor {
    text-decoration: none;
    display: inline-block;
}

.tk-site-name {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 0.5px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    display: inline-block;
    line-height: 1;
}

.tk-domain-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid var(--gold);
    border-radius: 4px;
}

.tk-domain-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.tk-domain-addr {
    font-size: 17px;
    font-weight: 700;
    color: var(--txt-primary);
    font-family: 'Courier New', 'Lucida Console', monospace;
    letter-spacing: 0.3px;
}

/* ===== LAYOUT ===== */
.tk-box {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 14px;
}

.tk-seg {
    padding: 8px 0;
}

/* ===== NAV PANEL ===== */
.tk-nav-panel {
    background: var(--navy3);
    border-radius: var(--r2);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--border-dim);
}

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

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

.tk-zone-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: rgba(245,166,35,0.05);
}

.tk-zone-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 10px;
    align-items: center;
}

.tk-zone-links a {
    display: inline-block;
    color: var(--txt-secondary);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--r1);
    transition: var(--ease);
    background: var(--navy4);
    border: 1px solid var(--border-dim);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.tk-zone-links a:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    font-weight: 600;
}

.tk-zone-links a.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

/* ===== SEARCH ===== */
.tk-search-block {
    background: var(--navy3);
    border-radius: var(--r2);
    padding: 11px;
    margin-bottom: 8px;
    border: 1px solid var(--border-dim);
}

.tk-search-block form {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    align-items: center;
}

.tk-search-block input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 8px 13px;
    border: 1px solid var(--steel);
    border-radius: var(--r1);
    background: var(--navy4);
    color: var(--txt-primary);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
}

.tk-search-block input[type="text"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(245,166,35,0.15);
}

.tk-search-block input[type="text"]::placeholder {
    color: var(--txt-muted);
}

.tk-search-block button {
    padding: 8px 14px;
    border: none;
    border-radius: var(--r1);
    background: var(--grad-gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.tk-search-block button:hover {
    filter: brightness(1.1);
    box-shadow: var(--shadow-gold);
}

/* ===== TAGS ===== */
.tk-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px;
    background: var(--navy3);
    border-radius: var(--r2);
    margin-bottom: 8px;
    border: 1px solid var(--border-dim);
}

.tk-tagitem {
    padding: 4px 12px;
    background: var(--navy4);
    border-radius: 3px;
    color: var(--txt-secondary);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border-dim);
}

.tk-tagitem:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 600;
}

/* ===== SECTION ===== */
.tk-sect {
    margin-bottom: 14px;
}

.tk-sect-hd {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-dim);
    position: relative;
}

.tk-sect-hd::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--grad-gold);
}

.tk-sect-ttl {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt-primary);
}

.tk-sect-ttl a {
    color: var(--txt-primary);
    text-decoration: none;
    transition: var(--ease);
}

.tk-sect-ttl a:hover {
    color: var(--gold);
}

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

.tk-mediagrid li {
    position: relative;
}

.tk-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r2);
    aspect-ratio: 600 / 350;
    background: var(--navy4);
    border: 1px solid var(--border-dim);
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.tk-cover:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow-m);
}

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

.tk-cover::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    color: var(--gold);
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    z-index: 2;
}

.tk-cover:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tk-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,17,32,0.82) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 1;
    pointer-events: none;
}

.tk-cover:hover::before {
    opacity: 1;
}

.tk-filmname {
    padding: 6px 0 3px;
}

.tk-filmname h5 {
    font-size: 12px;
    font-weight: 400;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    color: var(--txt-secondary);
}

.tk-filmname h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.tk-filmname h5 a:hover {
    color: var(--gold);
}

/* ===== DETAIL PAGE ===== */
.tk-dtitle {
    line-height: 1.7;
    text-align: center;
    padding: 16px 18px;
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--navy3);
    border-radius: var(--r3);
    border: 1px solid var(--border-dim);
    border-left: 3px solid var(--gold);
}

.tk-dtitle a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.tk-dtitle b {
    color: var(--txt-primary);
}

.tk-infobox {
    font-size: 14px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--navy3);
    border-radius: var(--r3);
    margin: 10px 0;
    border: 1px solid var(--border-dim);
    color: var(--txt-secondary);
}

/* ===== CAPTURE ===== */
.tk-preview-frame {
    margin: 10px 0;
}

.tk-preview-frame picture,
.tk-preview-frame picture img {
    display: block;
    width: 100%;
    border-radius: var(--r2);
}

/* ===== DOWNLOAD BUTTONS ===== */
.tk-btnrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.tk-actbtn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--r1);
    background: var(--grad-gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-gold);
}

.tk-actbtn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 22px rgba(245,166,35,0.45);
    transform: translateY(-1px);
}

/* ===== CLIENT LINKS ===== */
.tk-pclink,
.tk-mobilelink {
    text-align: center;
    padding: 12px;
}

.tk-pclink a,
.tk-mobilelink a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
}

.tk-pclink a:hover,
.tk-mobilelink a:hover {
    color: var(--gold-light);
}

/* ===== SHARE ===== */
.tk-sharerow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--navy3);
    border-radius: var(--r3);
    border: 1px solid var(--border-dim);
    margin: 10px 0;
    flex-wrap: nowrap;
}

.tk-urldisplay {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    padding: 7px 11px;
    background: var(--navy4);
    border-radius: var(--r1);
    border: 1px solid var(--border-dim);
    overflow: hidden;
}

.tk-urllabel {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tk-urltext {
    font-size: 11px;
    color: var(--txt-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    font-family: 'Courier New', monospace;
}

.tk-copybtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--navy4);
    color: var(--txt-secondary);
    border: 1px solid var(--border-dim);
    border-radius: var(--r1);
    cursor: pointer;
    font-size: 12px;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.tk-copybtn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
}

.tk-ico { font-size: 14px; }

/* ===== PAGINATION ===== */
.tk-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding: 18px 0;
}

.tk-plink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: var(--r1);
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.tk-pnum {
    background: var(--navy3);
    color: var(--txt-secondary);
    border: 1px solid var(--border-dim);
}

.tk-pnum:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.tk-pcur {
    background: var(--grad-gold);
    color: var(--navy);
    border: 1px solid transparent;
    cursor: default;
    font-weight: 700;
}

/* ===== FOOTER ===== */
.tk-flinks { margin-bottom: 8px; }

.tk-flinkbox {
    padding: 11px 13px;
    background: var(--navy3);
    border-radius: var(--r2);
    border: 1px solid var(--border-dim);
}

.tk-flinkbox dl { margin: 0; }
.tk-flinkbox dd { display: inline-block; margin: 3px 4px; }

.tk-flinkbox a {
    color: var(--txt-muted);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.tk-flinkbox a:hover { color: var(--gold); }

.tk-footer {
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid var(--border-dim);
    margin-top: 14px;
}

.tk-footer p {
    margin: 5px 0;
    color: var(--txt-muted);
    font-size: 12px;
}

.tk-footer a {
    color: var(--txt-muted);
    text-decoration: none;
    transition: var(--ease);
}

.tk-footer a:hover { color: var(--gold); }

/* ===== VISIBILITY ===== */
.pc-only { display: block; }
.mob-only { display: block; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tk-box { padding: 0 8px; }
    .tk-brand { gap: 10px; }
    .tk-site-name { font-size: 19px; }
    .tk-domain-addr { font-size: 15px; }
    .tk-domain-label { font-size: 9px; }
    .tk-domain-pill { padding: 4px 12px; gap: 7px; }
    .tk-seg { padding: 5px 0; }

    .tk-mediagrid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .tk-filmname h5 { font-size: 11px; }
    .tk-sect-ttl { font-size: 15px; }
    .tk-sect { margin-bottom: 10px; }

    .tk-nav-row .tk-zone-name {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }
    .tk-nav-row .tk-zone-links {
        width: 85%;
        gap: 4px;
        padding: 7px 5px;
    }
    .tk-nav-row .tk-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .tk-search-block { padding: 9px; }
    .tk-search-block input[type="text"] { min-width: 80px; font-size: 12px; padding: 7px 10px; }
    .tk-search-block button { padding: 7px 10px; font-size: 11px; }

    .tk-btnrow { padding: 12px 8px; gap: 8px; }
    .tk-actbtn { padding: 9px 16px; font-size: 12px; }

    .tk-sharerow { padding: 9px 10px; gap: 7px; }
    .tk-copybtn { padding: 7px 11px; font-size: 11px; }

    .tk-dtitle { font-size: 14px; padding: 13px 13px; }
    .tk-infobox { padding: 14px 15px; font-size: 13px; }

    .tk-pager { gap: 4px; padding: 13px 0; }
    .tk-plink { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .tk-tagcloud { gap: 5px; padding: 9px; }
    .tk-tagitem { padding: 4px 10px; font-size: 11px; }
}

@media (max-width: 480px) {
    .tk-site-name { font-size: 17px; }
    .tk-domain-addr { font-size: 14px; }

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

    .tk-mediagrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .tk-filmname h5 { font-size: 11px; }
    .tk-actbtn { padding: 8px 12px; font-size: 11px; }
}

/* Clearfix */
.cfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--navy4); }
