/* Media Portal — United Airlines Inspired Style: Deep Navy + Bright Blue + White */

:root {
    --ual-navy:       #1a1f71;
    --ual-blue:       #3366cc;
    --ual-blue-light: #4a7de8;
    --ual-blue-hover: #2255bb;
    --ual-white:      #ffffff;
    --ual-bg:         #f0f2f7;
    --ual-surface:    #ffffff;
    --ual-surface2:   #e8ecf4;
    --ual-text:       #1a1a2e;
    --ual-text-sub:   #4a5068;
    --ual-border:     #cdd4e8;
    --ual-border-lt:  #e2e7f3;
    --ual-shadow-sm:  rgba(26, 31, 113, 0.08);
    --ual-shadow-md:  rgba(26, 31, 113, 0.18);
    --grad-navy:      linear-gradient(135deg, #1a1f71 0%, #2a3090 100%);
    --grad-blue:      linear-gradient(135deg, #3366cc 0%, #4a7de8 100%);
    --rad:            6px;
    --rad-sm:         4px;
    --spd:            0.22s ease;
}

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--ual-bg);
    color: var(--ual-text);
    line-height: 1.5;
    font-size: 14px;
    overflow-x: hidden;
}

/* ─── HEADER ─── */
.pg-header {
    background: var(--ual-navy);
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px var(--ual-shadow-md);
}

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

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

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

.hd-sitename {
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    color: var(--ual-white);
    letter-spacing: 0.2px;
    border-bottom: none;
    text-decoration: none;
    line-height: 1;
}

.hd-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 30px;
}

.hd-domain-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hd-domain-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--ual-white);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.2px;
}

/* ─── LAYOUT ─── */
.pg-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
}

.pg-block {
    padding: 7px 0;
}

/* ─── BANNER ─── */
.pg-banner {
    width: 100%;
    margin: 1px 0;
    overflow: hidden;
}

.pg-banner a { display: block; }
.pg-banner img { display: block; width: 100%; }

/* ─── CATEGORY NAV ─── */
.nav-panel {
    background: var(--ual-surface);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--ual-border);
    box-shadow: 0 1px 4px var(--ual-shadow-sm);
}

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

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

.nav-zone {
    font-size: 12px;
    font-weight: 700;
    color: var(--ual-white);
    background: var(--grad-navy);
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.3;
}

.nav-items {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
    align-items: center;
    background: #f7f8fc;
}

.nav-items a {
    display: inline-block;
    color: var(--ual-blue);
    text-decoration: none;
    padding: 4px 4px;
    border-radius: var(--rad-sm);
    transition: var(--spd);
    background: var(--ual-white);
    border: 1px solid var(--ual-border);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.nav-items a:hover {
    background: var(--ual-blue);
    color: var(--ual-white);
    border-color: var(--ual-blue);
    box-shadow: 0 2px 6px rgba(51,102,204,0.25);
}

.nav-items a.active {
    background: var(--ual-navy);
    color: var(--ual-white);
    border-color: var(--ual-navy);
    font-weight: 700;
}

/* ─── SEARCH ─── */
.search-bar {
    background: var(--ual-surface);
    border-radius: var(--rad);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--ual-border);
    box-shadow: 0 1px 4px var(--ual-shadow-sm);
}

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

.search-bar input[type="text"] {
    flex: 1;
    min-width: 50px;
    padding: 8px 12px;
    border: 1px solid var(--ual-border);
    border-radius: 30px;
    background: var(--ual-bg);
    color: var(--ual-text);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: var(--spd);
}

.search-bar input[type="text"]:focus {
    border-color: var(--ual-blue);
    background: var(--ual-white);
    box-shadow: 0 0 0 2px rgba(51,102,204,0.15);
}

.search-bar input[type="text"]::placeholder { color: #8a93b2; }

.search-bar button {
    padding: 8px 14px;
    border: none;
    border-radius: 30px;
    background: var(--grad-blue);
    color: var(--ual-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--spd);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.search-bar button:hover {
    background: var(--grad-navy);
    box-shadow: 0 3px 8px var(--ual-shadow-md);
}

/* ─── TAG CLOUD ─── */
.kw-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--ual-surface);
    border-radius: var(--rad);
    margin-bottom: 7px;
    border: 1px solid var(--ual-border);
    box-shadow: 0 1px 4px var(--ual-shadow-sm);
}

.kw-tag {
    padding: 4px 12px;
    background: var(--ual-surface2);
    border-radius: 30px;
    color: var(--ual-blue);
    text-decoration: none;
    font-size: 13px;
    transition: var(--spd);
    border: 1px solid var(--ual-border);
}

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

/* ─── SECTION HEAD ─── */
.media-sect {
    margin-bottom: 13px;
}

.sect-hd {
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ual-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sect-hd::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--grad-blue);
    border-radius: 2px;
    flex-shrink: 0;
}

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

.sect-ttl a {
    color: var(--ual-navy);
    text-decoration: none;
    transition: var(--spd);
}

.sect-ttl a:hover { color: var(--ual-blue); }

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

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

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

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

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

.film-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,31,113,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.film-cover:hover::after { opacity: 1; }
.film-cover:hover img { transform: scale(1.07); }
.film-cover:hover {
    border-color: var(--ual-blue);
    box-shadow: 0 4px 12px var(--ual-shadow-md);
}

.film-info { padding: 6px 0 2px; }

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

.film-info h5 a {
    color: var(--ual-navy);
    text-decoration: none;
    transition: var(--spd);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-info h5 a:hover { color: var(--ual-blue); }

/* ─── VIDEO PLAYER ─── */
.vp-container {
    width: 100%;
    height: 600px;
    max-height: 600px;
    margin-bottom: 13px;
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--ual-shadow-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 16px var(--ual-shadow-md);
}

/* ─── TORRENT PREVIEW ─── */
.snap-grid img,
.snap-grid .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    border: 1px solid var(--ual-border);
    display: block;
}

.snap-grid .img_item { width: 100%; }

/* ─── DOWNLOAD BUTTONS ─── */
.dl-row {
    text-align: center;
    padding: 13px;
    background: var(--ual-surface);
    border-radius: var(--rad);
    margin: 11px 0;
    border: 1px solid var(--ual-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 9px 22px;
    background: var(--grad-blue);
    color: var(--ual-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--spd);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.down_btn:hover {
    background: var(--grad-navy);
    box-shadow: 0 4px 12px var(--ual-shadow-md);
}

/* ─── SHARE ─── */
.share-section {
    background: var(--ual-surface);
    border-radius: var(--rad);
    padding: 12px 14px;
    margin: 11px 0;
    border: 1px solid var(--ual-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--ual-bg);
    border: 1px solid var(--ual-border);
    border-radius: 30px;
    padding: 8px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 9px 16px;
    background: var(--grad-navy);
    color: var(--ual-white);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--spd);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover { background: var(--grad-blue); }
.share-copy-btn:active { transform: scale(0.97); }

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--spd);
    min-width: 34px;
    text-align: center;
}

.a_page_info {
    background: var(--ual-surface);
    color: var(--ual-blue);
    border: 1px solid var(--ual-border);
}

.a_page_info:hover {
    background: var(--ual-blue);
    border-color: var(--ual-blue);
    color: var(--ual-white);
}

.page_info_focus {
    background: var(--grad-navy);
    color: var(--ual-white);
    border: 1px solid transparent;
    cursor: default;
}

/* ─── FOOTER ─── */
.pg-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--ual-navy);
    margin-top: 18px;
    background: var(--ual-surface);
}

.ftr-copy p {
    margin: 5px 0;
    color: var(--ual-text-sub);
    font-size: 13px;
}

.ftr-copy a {
    color: var(--ual-blue);
    text-decoration: none;
    transition: var(--spd);
}

.ftr-copy a:hover { text-decoration: underline; }

/* ─── LINKS ─── */
.links-panel {
    padding: 10px 12px;
    background: var(--ual-surface);
    border-radius: var(--rad);
    border: 1px solid var(--ual-border);
}

.links-panel dl { margin: 0; }

.links-panel dd {
    display: inline-block;
    margin: 3px;
}

.links-panel a {
    color: var(--ual-blue);
    text-decoration: none;
    font-size: 13px;
    transition: var(--spd);
}

.links-panel a:hover {
    text-decoration: underline;
    color: var(--ual-navy);
}

.pd5 { padding: 2px 6px; display: inline-block; }

/* ─── UTILITY ─── */
.clearfix::after { content: ""; display: table; clear: both; }
img[data-original] { background: var(--ual-surface2); }

/* ════════════════════════════
   RESPONSIVE  ≤ 768 px
   ════════════════════════════ */
@media (max-width: 768px) {
    .pg-wrap { padding: 0 8px; }

    .pg-header { padding: 0.4rem 0; }

    .hd-brand { gap: 10px; }

    .hd-sitename { font-size: 18px; }

    .hd-domain-pill { padding: 4px 10px; gap: 6px; }

    .hd-domain-label { font-size: 9px; }

    .hd-domain-val { font-size: 14px; }

    .pg-block { padding: 5px 0; }

    /* NAV: zone=15%, links=85%, 4 per row → 2 rows */
    .nav-strip .nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
        line-height: 1.2;
        word-break: keep-all;
    }

    .nav-strip .nav-items {
        width: 85%;
        gap: 4px;
        padding: 6px 4px;
    }

    .nav-strip .nav-items a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
        text-align: center;
    }

    /* GRID: 2 columns */
    .film-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    /* SEARCH: one line, no wrap */
    .search-bar { padding: 8px 9px; }

    .search-bar form { flex-wrap: nowrap; gap: 5px; }

    .search-bar input[type="text"] {
        min-width: 50px;
        padding: 7px 9px;
        font-size: 13px;
    }

    .search-bar button { padding: 7px 9px; font-size: 11px; }

    .film-info h5 { font-size: 12px; }

    .media-sect { margin-bottom: 11px; }

    .sect-ttl { font-size: 15px; }

    .sect-hd::before { height: 17px; }

    .kw-cloud { padding: 8px; gap: 5px; }

    .kw-tag { padding: 3px 9px; font-size: 12px; }

    .down_btn { padding: 8px 14px; font-size: 12px; }

    .dl-row { padding: 9px 7px; margin: 9px 0; gap: 6px; }

    .share-section { padding: 9px; margin: 9px 0; gap: 6px; flex-wrap: nowrap; }

    .share-url-display { padding: 7px 10px; gap: 5px; flex: 1; min-width: 0; }

    .share-label { font-size: 10px; }

    .share-url { font-size: 10px; }

    .share-copy-btn { padding: 7px 10px; font-size: 11px; flex-shrink: 0; }

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

    .vp-container { height: 56.25vw; max-height: 360px; margin-bottom: 10px; }

    .page_info_div { padding: 10px 0; gap: 3px; }

    .a_page_info,
    .page_info_focus { padding: 5px 10px; font-size: 12px; min-width: 30px; }

    .pg-footer { padding: 14px 0; margin-top: 14px; }
}

/* 481–768 px: larger phones — nav font slightly bigger */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-strip .nav-items a { font-size: 13px; }
    .nav-strip .nav-zone   { font-size: 10px; }
}

/* ≤ 480 px: small phones */
@media (max-width: 480px) {
    .hd-sitename { font-size: 16px; }

    .hd-domain-pill { padding: 3px 8px; }

    .hd-domain-label { font-size: 9px; }

    .hd-domain-val { font-size: 13px; }

    .nav-strip .nav-zone  { width: 15%; font-size: 10px; padding: 5px 2px; }

    .nav-strip .nav-items { width: 85%; gap: 3px; padding: 5px 3px; }

    .nav-strip .nav-items a {
        font-size: 12px;
        padding: 3px 1px;
        width: calc((100% - 9px) / 4);
    }

    .film-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .film-info h5 { font-size: 11px; }

    .sect-ttl { font-size: 14px; }

    .vp-container { height: 56.25vw; max-height: 260px; }

    .dl-row { gap: 5px; padding: 8px 4px; }

    .down_btn { padding: 7px 10px; font-size: 11px; }

    .share-section { padding: 7px; gap: 4px; }

    .share-copy-btn { padding: 7px 8px; font-size: 10px; }

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

/* ─── HIDE HELPERS ─── */
.hide_mobile { display: block; }
.hide_pc     { display: block; }

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