/* Video Site Template - LyricsTranslate Style: White + Olive-Yellow + Red + Blue */

:root {
    --red:       #cc2200;
    --red-h:     #aa1800;
    --blue:      #1a56a0;
    --blue-h:    #0d3f80;
    --blue-vis:  #551aaa;
    --olive:     #e8edcc;
    --olive-b:   #c8d080;
    --olive-d:   #b8c060;
    --gold:      #d4a017;
    --bg:        #ffffff;
    --bg-page:   #f4f4f4;
    --bg-muted:  #fafafa;
    --border:    #cccccc;
    --border-lt: #e2e2e2;
    --txt:       #222222;
    --txt-sub:   #444444;
    --txt-dim:   #888888;
    --txt-white: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.08);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.1);
    --r-xs:      3px;
    --r-sm:      4px;
    --r-md:      6px;
    --ease:      all 0.18s ease;
    --max-w:     1080px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: Arial, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-page);
    color: var(--txt);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.site-top {
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-xs);
}

.top-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.top-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.top-sitename {
    font-size: 20px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: Arial Black, Arial, sans-serif;
}

.top-domain {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--olive);
    border: 1px solid var(--olive-b);
    border-radius: var(--r-xs);
}

.top-domain-lbl {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.top-domain-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.2px;
}

/* ===================== LAYOUT ===================== */
.site-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 12px;
}

.row-pad {
    padding: 7px 0;
}

/* ===================== NAV BLOCK ===================== */
.cat-panel {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 7px;
    box-shadow: var(--shadow-xs);
}

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

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

.cat-zone {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--border-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    background: var(--olive);
    letter-spacing: 0.1px;
}

.cat-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 7px;
    align-items: center;
}

.cat-links a {
    display: inline-block;
    color: var(--blue);
    text-decoration: none;
    padding: 3px 4px;
    border-radius: var(--r-xs);
    transition: var(--ease);
    background: var(--bg-muted);
    border: 1px solid var(--border-lt);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.cat-links a:hover {
    background: var(--blue);
    color: var(--txt-white);
    border-color: var(--blue);
    text-decoration: none;
}

.cat-links a.active {
    background: var(--red);
    color: var(--txt-white);
    border-color: var(--red);
    font-weight: 700;
}

/* ===================== SEARCH ===================== */
.srch-box {
    background: var(--olive);
    border: 1px solid var(--olive-b);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 7px;
}

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

.srch-box input[type="text"] {
    flex: 1;
    min-width: 100px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-xs);
    background: var(--bg);
    color: var(--txt);
    font-size: 13px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.srch-box input[type="text"]:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(26,86,160,0.12);
}

.srch-box input[type="text"]::placeholder {
    color: var(--txt-dim);
}

.srch-box button {
    padding: 7px 14px;
    border: 1px solid var(--olive-d);
    border-radius: var(--r-xs);
    background: var(--olive-d);
    color: var(--txt);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.srch-box button:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--txt-white);
}

/* ===================== TAG CLOUD ===================== */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 9px 10px;
    background: var(--bg);
    border-radius: var(--r-sm);
    margin-bottom: 7px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.tag-kw {
    padding: 3px 10px;
    background: var(--bg-muted);
    border-radius: var(--r-xs);
    color: var(--blue);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border-lt);
}

.tag-kw:hover {
    background: var(--blue);
    color: var(--txt-white);
    border-color: var(--blue);
}

/* ===================== SECTION BLOCKS ===================== */
.vid-section {
    margin-bottom: 12px;
}

.sec-hd {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.sec-hd::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2px;
    background: var(--red);
}

.sec-ttl {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--red);
    font-family: Arial Black, Arial, sans-serif;
}

.sec-ttl a {
    color: var(--red);
    text-decoration: none;
    transition: var(--ease);
}

.sec-ttl a:hover {
    color: var(--blue);
    text-decoration: underline;
}

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

.vid-grid li {
    animation: popIn 0.38s ease backwards;
}

.vid-grid li:nth-child(1) { animation-delay: 0.03s; }
.vid-grid li:nth-child(2) { animation-delay: 0.06s; }
.vid-grid li:nth-child(3) { animation-delay: 0.09s; }
.vid-grid li:nth-child(4) { animation-delay: 0.12s; }
.vid-grid li:nth-child(5) { animation-delay: 0.15s; }
.vid-grid li:nth-child(6) { animation-delay: 0.18s; }
.vid-grid li:nth-child(7) { animation-delay: 0.21s; }
.vid-grid li:nth-child(8) { animation-delay: 0.24s; }

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

.vid-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xs);
    aspect-ratio: 600 / 350;
    background: var(--olive);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

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

.vid-thumb:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.vid-thumb:hover img {
    transform: scale(1.06);
}

.vid-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.vid-thumb:hover::after {
    opacity: 1;
}

.vid-caption {
    padding: 5px 0 2px;
}

.vid-caption h5 {
    font-size: 12px;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vid-caption h5 a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--ease);
}

.vid-caption h5 a:hover {
    color: var(--red);
    text-decoration: underline;
}

/* ===================== VIDEO PLAYER ===================== */
.player-frame {
    background: var(--bg);
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    box-shadow: var(--shadow-xs);
}

.video-container {
    position: relative;
    width: 100%;
    height: 480px;
    background: #000;
    overflow: hidden;
}

.video-container iframe,
.video-container video,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ===================== DETAIL INFO ===================== */
.detail-hd {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    margin: 10px 0;
    word-break: break-all;
    background: var(--olive);
    border-radius: var(--r-sm);
    border: 1px solid var(--olive-b);
}

.detail-hd a {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    margin-right: 6px;
}

.detail-hd a:hover {
    text-decoration: underline;
}

.detail-body {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    margin: 10px 0;
    box-shadow: var(--shadow-xs);
}

/* ===================== TORRENT CAPTURES ===================== */
.cap-wrap {
    margin-top: 10px;
}

.cap-wrap picture {
    display: block;
    width: 100%;
}

.cap-wrap picture img,
.cap-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--r-xs);
}

/* ===================== DOWNLOAD BUTTONS ===================== */
.dl-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 14px 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.dl-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: var(--r-xs);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ease);
    border: 1px solid var(--olive-d);
    background: var(--olive);
    color: var(--txt);
    font-family: inherit;
}

.dl-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--txt-white);
}

/* ===================== CLIENT LINKS ===================== */
.client-tip {
    text-align: center;
    padding: 10px 16px;
}

.client-tip a {
    color: var(--blue);
    text-decoration: underline;
    font-weight: 600;
    font-size: 13px;
}

.client-tip a:hover {
    color: var(--red);
}

/* ===================== SHARE SECTION ===================== */
.share-section {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin: 10px 0;
    flex-wrap: nowrap;
    box-shadow: var(--shadow-xs);
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
    background: var(--bg-muted);
    padding: 7px 10px;
    border-radius: var(--r-xs);
    border: 1px solid var(--border-lt);
    overflow: hidden;
}

.share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

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

.share-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: var(--r-xs);
    background: var(--olive);
    color: var(--txt);
    border: 1px solid var(--olive-b);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    background: var(--blue);
    color: var(--txt-white);
    border-color: var(--blue);
}

.share-icon {
    font-size: 14px;
}

/* ===================== PAGINATION ===================== */
.pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 14px 0;
}

.pg-btn,
.pg-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: var(--r-xs);
    font-size: 13px;
    transition: var(--ease);
    min-width: 32px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

.pg-btn {
    background: var(--bg);
    color: var(--blue);
    border: 1px solid var(--border);
}

.pg-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--txt-white);
    text-decoration: none;
}

.pg-now {
    background: var(--red);
    color: var(--txt-white);
    border: 1px solid var(--red);
    cursor: default;
    font-weight: 700;
}

/* ===================== FOOTER ===================== */
.site-bottom {
    padding: 18px 0;
    text-align: center;
    border-top: 2px solid var(--border);
    margin-top: 18px;
    background: var(--bg);
}

.site-bottom p {
    margin: 4px 0;
    color: var(--txt-dim);
    font-size: 12px;
}

.site-bottom a {
    color: var(--txt-dim);
    text-decoration: none;
    transition: var(--ease);
}

.site-bottom a:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* ===================== FRIEND LINKS ===================== */
.flink-box {
    padding: 9px 10px;
    background: var(--bg);
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.flink-box dl {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.flink-box dd {
    display: inline-block;
    margin: 3px 2px;
}

.flink-box a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--ease);
    font-size: 12px;
    padding: 1px 4px;
}

.flink-box a:hover {
    color: var(--red);
    text-decoration: underline;
}

/* ===================== CLEARFIX ===================== */
.clr::after { content: ""; display: table; clear: both; }

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

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .site-wrap { padding: 0 7px; }
    .site-top { padding: 0.4rem 0; }
    .top-brand { gap: 9px; }
    .top-sitename { font-size: 17px; }
    .top-domain { padding: 3px 9px; }
    .top-domain-lbl { font-size: 9px; }
    .top-domain-val { font-size: 11px; }
    .row-pad { padding: 5px 0; }

    /* Mobile nav: zone 15%, links 85%, 4 per row */
    .cat-row .cat-zone {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        letter-spacing: 0;
    }

    .cat-row .cat-links {
        width: 85%;
        font-size: 12px;
        gap: 3px;
        padding: 7px 3px;
    }

    .cat-row .cat-links a {
        font-size: 12px;
        padding: 3px 2px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    .vid-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vid-caption h5 { font-size: 12px; }
    .sec-ttl { font-size: 14px; }
    .tag-row { padding: 7px 8px; gap: 4px; }
    .tag-kw { padding: 3px 8px; font-size: 11px; }

    .srch-box { padding: 8px 9px; }
    .srch-box form { gap: 5px; }
    .srch-box input[type="text"] { min-width: 70px; padding: 6px 9px; font-size: 12px; }
    .srch-box button { padding: 6px 8px; font-size: 12px; }

    .video-container { height: 56.25vw; max-height: 340px; margin-bottom: 10px; }

    .dl-row { padding: 10px 6px; gap: 7px; }
    .dl-btn { padding: 7px 14px; font-size: 12px; }

    .share-section { padding: 8px 9px; margin: 8px 0; gap: 6px; }
    .share-url-display { padding: 6px 8px; gap: 5px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 6px 8px; font-size: 11px; flex-shrink: 0; }
    .share-icon { font-size: 13px; }

    .pager { gap: 3px; padding: 12px 0; }
    .pg-btn, .pg-now { padding: 5px 9px; font-size: 12px; min-width: 28px; }
    .site-bottom { padding: 15px 0; margin-top: 15px; }
}

@media (max-width: 480px) {
    .top-sitename { font-size: 15px; }
    .top-domain-lbl { font-size: 8px; }
    .top-domain-val { font-size: 10px; }

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

    .vid-caption h5 { font-size: 12px; }
    .sec-ttl { font-size: 13px; }
    .video-container { height: 56.25vw; max-height: 260px; }
    .dl-btn { padding: 6px 11px; font-size: 12px; }
    .share-section { padding: 6px 7px; }
    .share-url-display { padding: 5px 6px; }
    .share-copy-btn { padding: 5px 7px; font-size: 11px; }
}

/* ===================== LAZY IMG ===================== */
img[data-original] { background: var(--olive); }
