/* Video Site — Opera Purple & Gradient Theme */

:root {
    --pu:        #7B2FF7;
    --pu-dk:     #6120d4;
    --pu-lt:     #f0e8ff;
    --pu-mid:    rgba(123, 47, 247, 0.12);
    --rose:      #ff4d6d;
    --bg:        #ffffff;
    --bg2:       #f7f5ff;
    --bg3:       #faf9ff;
    --surface:   #ffffff;
    --surface2:  #f4f2fb;
    --ink:       #1a1325;
    --ink-sub:   #5a5370;
    --ink-dim:   #9b96a8;
    --edge:      #e4dff5;
    --edge-lt:   #ede9f8;
    --shade:     rgba(123, 47, 247, 0.08);
    --shade-lg:  rgba(123, 47, 247, 0.18);
    --grad-hero: linear-gradient(135deg, #fde8e0 0%, #f5eeff 50%, #eae4ff 100%);
    --grad-pu:   linear-gradient(135deg, #7B2FF7 0%, #9b5ffa 100%);
    --grad-soft: linear-gradient(135deg, #f7f5ff 0%, #fff 100%);
    --r:         10px;
    --r-sm:      7px;
    --r-pill:    50px;
    --ease:      all 0.22s cubic-bezier(.4,0,.2,1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Microsoft YaHei', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    font-size: 14px;
    overflow-x: hidden;
}

/* ── Header ── */
.pg-header {
    background: var(--bg);
    border-bottom: 1px solid var(--edge);
    padding: 0.55rem 0;
    box-shadow: 0 1px 12px rgba(123,47,247,.07);
}

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

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

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

.site-nm {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.3px;
    line-height: 1;
    transition: var(--ease);
}

.logo-link:hover .site-nm {
    color: var(--pu);
}

.domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 10px;
    background: var(--grad-pu);
    border-radius: var(--r-pill);
    flex-shrink: 0;
}

.dc-tag {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    letter-spacing: .5px;
    white-space: nowrap;
    background: rgba(255,255,255,.2);
    padding: 1px 6px;
    border-radius: 20px;
}

.dc-url {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .2px;
}

/* ── Layout ── */
.frame {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.gap { padding: 8px 0; }

/* ── Category Nav ── */
.cat-box {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px var(--shade);
}

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

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

.cat-label {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--grad-pu);
    width: 10%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: .2px;
}

.cat-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    align-items: center;
    background: var(--bg3);
}

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

.cat-items a:hover {
    background: var(--pu);
    color: #fff;
    border-color: var(--pu);
    box-shadow: 0 2px 10px var(--shade-lg);
}

.cat-items a.active {
    background: var(--pu);
    color: #fff;
    border-color: var(--pu);
    font-weight: 600;
    box-shadow: 0 2px 10px var(--shade-lg);
}

/* ── Search ── */
.srch-box {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px var(--shade);
}

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

.srch-box input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 9px 14px;
    border: 1.5px solid var(--edge);
    border-radius: var(--r-pill);
    background: var(--bg2);
    color: var(--ink);
    font-size: 13px;
    outline: none;
    transition: var(--ease);
}

.srch-box input[type="text"]:focus {
    border-color: var(--pu);
    background: #fff;
    box-shadow: 0 0 0 3px var(--pu-mid);
}

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

.srch-box button {
    padding: 9px 16px;
    border: none;
    border-radius: var(--r-pill);
    background: var(--grad-pu);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.srch-box button:hover {
    opacity: .88;
    box-shadow: 0 4px 14px var(--shade-lg);
}

/* ── Keyword Tags ── */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px var(--shade);
}

.tag-pill {
    padding: 4px 13px;
    background: var(--bg2);
    border-radius: var(--r-pill);
    color: var(--pu);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--ease);
    border: 1px solid var(--edge);
}

.tag-pill:hover {
    background: var(--pu);
    color: #fff;
    border-color: var(--pu);
    box-shadow: 0 2px 8px var(--shade-lg);
}

/* ── Section ── */
.media-sec { margin-bottom: 12px; }

.sec-hd {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--edge-lt);
    position: relative;
}

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

.sec-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--ink);
    letter-spacing: -.2px;
}

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

.sec-title a:hover { color: var(--pu); }

/* ── Thumbnail Grid ── */
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}

.thumb-grid li { position: relative; }

.thumb-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--r);
    aspect-ratio: 600 / 350;
    background: var(--surface2);
    border: 1px solid var(--edge);
    transition: var(--ease);
}

.thumb-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .38s ease;
}

.thumb-card:hover {
    border-color: var(--pu);
    box-shadow: 0 6px 22px var(--shade-lg);
    transform: translateY(-2px);
}

.thumb-card:hover img { transform: scale(1.07); }

.thumb-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(123,47,247,.55) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 1;
}

.thumb-card:hover::before { opacity: 1; }

.card-info { padding: 7px 0; }

.card-info h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

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

.card-info h5 a:hover { color: var(--pu); }

/* ── Video Player ── */
.video-container {
    width: 100%; height: 620px; max-height: 620px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shade-lg);
    position: relative;
    border: 1px solid var(--edge);
}

.video-container iframe,
.video-container video,
.video-container #video-container {
    width: 100%; height: 100%; border: none;
}

.MacPlayer {
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--edge);
    box-shadow: 0 6px 24px var(--shade-lg);
}

/* ── Torrent Capture ── */
.torrent-capture-grid {}

.torrent-capture-grid img,
.torrent-capture-grid .img_item img {
    width: 100%; height: auto; display: block;
    border-radius: var(--r-sm);
    border: 1px solid var(--edge);
}

.torrent-capture-grid img:hover,
.torrent-capture-grid .img_item img:hover {
    box-shadow: none; transform: none;
}

.torrent-capture-grid .img_item { width: 100%; }

/* ── Action Buttons ── */
.dl-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px 12px;
    background: var(--bg2);
    border-radius: var(--r);
    margin: 10px 0;
    border: 1px solid var(--edge);
}

.dl-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-pu);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 12px var(--shade-lg);
}

.dl-btn:hover {
    opacity: .88;
    box-shadow: 0 6px 20px var(--shade-lg);
    transform: translateY(-1px);
}

/* ── Share Panel ── */
.shr-panel {
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    padding: 12px 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px var(--shade);
}

.share-url-display {
    background: var(--bg2);
    border: 1px solid var(--edge);
    border-radius: var(--r-pill);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label {
    font-weight: 700;
    font-size: 11px;
    color: var(--pu);
    white-space: nowrap;
    flex-shrink: 0;
}

.share-url {
    font-size: 12px;
    color: var(--ink-sub);
    word-break: break-all;
    flex: 1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-copy-btn {
    padding: 10px 18px;
    background: var(--grad-pu);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 3px 10px var(--shade-lg);
}

.share-copy-btn:hover {
    opacity: .88;
    box-shadow: 0 5px 16px var(--shade-lg);
    transform: translateY(-1px);
}

.share-copy-btn:active { transform: scale(.97); }

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

/* ── Pagination ── */
.pgn-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px 0;
}

.pgn-a, .pgn-now {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.pgn-a {
    background: var(--surface);
    color: var(--ink-sub);
    border: 1px solid var(--edge);
}

.pgn-a:hover {
    background: var(--pu);
    border-color: var(--pu);
    color: #fff;
    box-shadow: 0 3px 10px var(--shade-lg);
}

.pgn-now {
    background: var(--grad-pu);
    color: #fff;
    border: 1px solid var(--pu);
    cursor: default;
    box-shadow: 0 3px 10px var(--shade-lg);
}

/* ── Footer ── */
.pg-foot {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--edge);
    margin-top: 16px;
    background: var(--bg2);
}

.pg-foot p { margin: 5px 0; color: var(--ink-dim); font-size: 12px; }

.pg-foot a {
    color: var(--ink-dim);
    text-decoration: none;
    transition: var(--ease);
}

.pg-foot a:hover { color: var(--pu); }

/* ── Friend Links ── */
.flink-box {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: var(--r);
    box-shadow: 0 2px 8px var(--shade);
}

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

.flink-box a {
    color: var(--pu);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

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

/* ── Utilities ── */
.clearfix::after { content: ""; display: table; clear: both; }

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

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

/* ── Responsive: tablet/mobile ── */
@media (max-width: 768px) {
    .frame { padding: 0 8px; }
    .pg-header { padding: .45rem 0; }
    .brand-line { gap: 10px; flex-wrap: nowrap; }
    .site-nm { font-size: 20px; }
    .domain-chip { padding: 4px 10px 4px 8px; gap: 5px; }
    .dc-tag { font-size: 9px; }
    .dc-url { font-size: 14px; }
    .gap { padding: 6px 0; }

    /* nav: label 15% / items 85%, 2 rows of 4 */
    .cat-row { display: flex; align-items: stretch; }
    .cat-label { width: 15%; font-size: 10px; padding: 6px 2px; word-break: keep-all; }
    .cat-items { width: 85%; gap: 3px; padding: 5px 4px; }
    .cat-items a {
        font-size: 12px; padding: 4px 2px;
        width: calc((100% - 9px) / 4);
        flex-shrink: 0; flex-grow: 0;
    }

    .thumb-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
    .sec-title { font-size: 16px; }
    .card-info h5 { font-size: 12px; }

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

    .tag-row { padding: 8px 10px; gap: 5px; }
    .tag-pill { padding: 3px 10px; font-size: 11px; }

    .dl-btn { padding: 9px 15px; font-size: 12px; }
    .dl-row { padding: 10px 8px; gap: 7px; }

    .shr-panel { padding: 9px 10px; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 10px; gap: 6px; flex: 1; min-width: 0; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 11px; flex-shrink: 0; }

    .pgn-row { padding: 10px 0; gap: 4px; }
    .pgn-a, .pgn-now { padding: 5px 11px; font-size: 12px; min-width: 32px; }

    .media-sec { margin-bottom: 8px; }
}

@media (max-width: 480px) {
    .site-nm { font-size: 18px; }
    .dc-tag { font-size: 9px; }
    .dc-url { font-size: 13px; }
    .cat-label { width: 15%; font-size: 10px; padding: 5px 1px; }
    .cat-items { width: 85%; gap: 3px; padding: 4px 3px; }
    .cat-items a { font-size: 12px; padding: 3px 1px; width: calc((100% - 9px) / 4); }
    .thumb-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
    .video-container { height: 56.25vw; max-height: 280px; margin-bottom: 8px; }
    .srch-box input[type="text"] { min-width: 70px; padding: 7px 10px; font-size: 12px; }
    .srch-box button { padding: 7px 10px; font-size: 11px; }
    .dl-row { padding: 8px 5px; gap: 5px; }
    .dl-btn { padding: 8px 11px; font-size: 11px; }
    .shr-panel { padding: 7px 8px; gap: 5px; }
}

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