/* BrightStream - Blue Gradient & Clean White Theme */

:root {
    --clr-primary: #4f46e5;
    --clr-primary2: #6366f1;
    --clr-primary3: #818cf8;
    --clr-accent: #f59e0b;
    --clr-accent2: #f97316;
    --clr-green: #10b981;
    --clr-bg: #f5f7ff;
    --clr-bg2: #ffffff;
    --clr-bg3: #eef0ff;
    --clr-bg4: #e0e3ff;
    --clr-text: #1e1b4b;
    --clr-text2: #374151;
    --clr-text-muted: #6b7280;
    --clr-border: #dde1f5;
    --clr-border2: #c7d0f8;
    --clr-shadow: rgba(79, 70, 229, 0.12);
    --clr-shadow-lg: rgba(79, 70, 229, 0.22);
    --clr-shadow-accent: rgba(245, 158, 11, 0.3);
    --grad-header: linear-gradient(145deg, #3730a3 0%, #4f46e5 35%, #6366f1 65%, #8b5cf6 100%);
    --grad-main: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --grad-card: linear-gradient(160deg, #ffffff 0%, #f5f7ff 100%);
    --rnd: 12px;
    --rnd-sm: 8px;
    --rnd-lg: 16px;
    --rnd-xl: 24px;
    --rnd-full: 9999px;
    --ease: all 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ============================
   TOP BAR / BRAND
============================ */
.site-topbar {
    background: var(--grad-header);
    padding: 12px 0;
    position: relative;
    overflow: hidden;
}

.site-topbar::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 55%;
    height: 260%;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.site-topbar::after {
    content: '';
    position: absolute;
    bottom: -80%;
    left: -5%;
    width: 40%;
    height: 200%;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

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

.brand-name {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.45);
    border-radius: var(--rnd-full);
    padding: 5px 16px;
    backdrop-filter: blur(4px);
}

.badge-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
}

.badge-addr {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}

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

.section-gap {
    padding: 7px 0;
}

/* ============================
   BANNER ZONE
============================ */
.banner-zone {
    margin: 5px 0;
    overflow: hidden;
    border-radius: var(--rnd-lg);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px var(--clr-shadow);
}

/* ============================
   NAV CHANNELS
============================ */
.channel-nav {
    background: var(--clr-bg2);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--rnd-lg);
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 18px var(--clr-shadow);
}

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

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

.ch-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--clr-primary);
    white-space: nowrap;
    width: 10%;
    min-width: 52px;
    text-align: center;
    border-right: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    background: var(--clr-bg3);
}

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

.ch-links a {
    display: inline-block;
    color: var(--clr-text2);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rnd-sm);
    transition: var(--ease);
    background: var(--clr-bg3);
    border: 1px solid var(--clr-border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
}

.ch-links a:hover {
    background: var(--grad-main);
    color: #fff;
    border-color: var(--clr-primary);
    font-weight: 600;
    box-shadow: 0 3px 10px var(--clr-shadow-lg);
}

.ch-links a.active {
    background: var(--grad-main);
    color: #fff;
    border-color: var(--clr-primary);
    font-weight: 700;
    box-shadow: 0 3px 10px var(--clr-shadow-lg);
}

/* ============================
   SEARCH BOX
============================ */
.search-zone {
    background: var(--clr-bg2);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--rnd-lg);
    padding: 11px;
    margin-bottom: 8px;
    box-shadow: 0 3px 12px var(--clr-shadow);
}

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

.search-zone input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 9px 16px;
    border: 1.5px solid var(--clr-border2);
    border-radius: var(--rnd-full);
    background: var(--clr-bg3);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
}

.search-zone input[type="text"]:focus {
    border-color: var(--clr-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

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

.search-zone button {
    padding: 9px 15px;
    border: none;
    border-radius: var(--rnd-full);
    background: var(--grad-main);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-zone button:hover {
    opacity: 0.88;
    box-shadow: 0 4px 14px var(--clr-shadow-lg);
}

/* ============================
   HOT TAGS
============================ */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 10px 12px;
    background: var(--clr-bg2);
    border: 1.5px solid var(--clr-border);
    border-radius: var(--rnd-lg);
    margin-bottom: 8px;
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.tag-item {
    padding: 5px 14px;
    background: var(--clr-bg3);
    border-radius: var(--rnd-full);
    color: var(--clr-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--ease);
    border: 1px solid var(--clr-border2);
}

.tag-item:hover {
    background: var(--grad-main);
    color: #fff;
    border-color: var(--clr-primary);
    font-weight: 600;
    box-shadow: 0 3px 10px var(--clr-shadow);
}

/* ============================
   SECTION BLOCKS
============================ */
.block-wrap {
    margin-bottom: 10px;
}

.block-head {
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--clr-border);
    position: relative;
}

.block-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--grad-main);
    border-radius: 2px;
}

.block-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--clr-text);
}

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

.block-title a:hover {
    color: var(--clr-primary);
}

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

.film-grid li {
    position: relative;
}

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rnd);
    aspect-ratio: 600 / 350;
    background: var(--clr-bg3);
    border: 1.5px solid var(--clr-border);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

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

.film-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(79, 70, 229, 0.72) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

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

.film-thumb:hover {
    border-color: var(--clr-primary2);
    box-shadow: 0 6px 22px var(--clr-shadow-lg);
}

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

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

.film-meta h5 a {
    color: var(--clr-text2);
    text-decoration: none;
    transition: var(--ease);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-meta h5 a:hover {
    color: var(--clr-primary);
}

/* ============================
   VIDEO PLAYER
============================ */
.player-wrapper {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 14px;
    background: #000;
    border-radius: var(--rnd-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--clr-shadow-lg);
    position: relative;
    border: 1.5px solid var(--clr-border);
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rnd-lg);
    overflow: hidden;
    margin-bottom: 12px;
}

/* ============================
   TORRENT PREVIEW
============================ */
.capture-zone img,
.capture-zone .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rnd-sm);
    border: 1.5px solid var(--clr-border);
    display: block;
}

.capture-zone .img_item {
    width: 100%;
}

/* ============================
   DOWNLOAD BUTTONS
============================ */
.dl-bar {
    text-align: center;
    padding: 14px;
    background: var(--clr-bg2);
    border-radius: var(--rnd-lg);
    margin: 12px 0;
    border: 1.5px solid var(--clr-border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    box-shadow: 0 3px 12px var(--clr-shadow);
}

.dl-btn {
    display: inline-block;
    padding: 10px 26px;
    background: var(--grad-main);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rnd-full);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--clr-shadow-lg);
}

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

/* ============================
   SHARE SECTION
============================ */
.link-share {
    background: var(--clr-bg2);
    border-radius: var(--rnd-lg);
    padding: 13px 15px;
    margin: 11px 0;
    border: 1.5px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px var(--clr-shadow);
}

.url-display {
    background: var(--clr-bg3);
    border: 1.5px solid var(--clr-border2);
    border-radius: var(--rnd-full);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.url-label {
    font-weight: 700;
    font-size: 12px;
    color: var(--clr-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.url-text {
    font-size: 12px;
    color: var(--clr-text-muted);
    word-break: break-all;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-link-btn {
    padding: 9px 18px;
    background: var(--grad-main);
    color: #fff;
    border: none;
    border-radius: var(--rnd-full);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--clr-shadow-lg);
}

.copy-link-btn:hover {
    opacity: 0.88;
    box-shadow: 0 6px 18px var(--clr-shadow-lg);
}

.ic-copy {
    font-size: 15px;
}

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

.pg-link,
.pg-current {
    display: inline-block;
    padding: 7px 14px;
    border-radius: var(--rnd-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
}

.pg-link {
    background: var(--clr-bg2);
    color: var(--clr-text2);
    border: 1.5px solid var(--clr-border2);
    box-shadow: 0 2px 6px var(--clr-shadow);
}

.pg-link:hover {
    background: var(--grad-main);
    border-color: var(--clr-primary);
    color: #fff;
    box-shadow: 0 4px 12px var(--clr-shadow-lg);
}

.pg-current {
    background: var(--grad-main);
    color: #fff;
    border: none;
    cursor: default;
    box-shadow: 0 4px 12px var(--clr-shadow-lg);
}

/* ============================
   FRIENDLY LINKS / FOOTER
============================ */
.links-block {
    padding: 10px 14px;
    background: var(--clr-bg2);
    border-radius: var(--rnd);
    border: 1.5px solid var(--clr-border);
    box-shadow: 0 2px 8px var(--clr-shadow);
}

.links-block dl {
    margin: 0;
}

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

.links-block a {
    color: var(--clr-primary2);
    text-decoration: none;
    transition: var(--ease);
    font-size: 13px;
}

.links-block a:hover {
    color: var(--clr-primary);
}

.site-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1.5px solid var(--clr-border);
    margin-top: 12px;
    background: var(--clr-bg2);
}

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

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

.site-footer a:hover {
    color: var(--clr-primary);
}

/* ============================
   UTILITY
============================ */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.hide-mobile {
    display: block;
}

.hide-pc {
    display: block;
}

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

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

    .site-topbar {
        padding: 9px 0;
    }

    .brand-name {
        font-size: 20px;
    }

    .badge-tag {
        font-size: 9px;
    }

    .badge-addr {
        font-size: 15px;
    }

    .section-gap {
        padding: 5px 0;
    }

    .ch-label {
        width: 15%;
        font-size: 10px;
        padding: 7px 3px;
    }

    .ch-links {
        width: 85%;
        gap: 4px;
        padding: 7px 4px;
    }

    .ch-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
    }

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

    .player-wrapper {
        height: 56.25vw;
        max-height: 400px;
        margin-bottom: 10px;
    }

    .search-zone {
        padding: 9px;
    }

    .search-zone form {
        gap: 5px;
    }

    .search-zone input[type="text"] {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .search-zone button {
        padding: 8px 10px;
        font-size: 12px;
    }

    .block-title {
        font-size: 16px;
    }

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

    .block-wrap {
        margin-bottom: 8px;
    }

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

    .tag-item {
        padding: 4px 10px;
        font-size: 11px;
    }

    .dl-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .dl-bar {
        padding: 10px 8px;
        margin: 9px 0;
        gap: 7px;
    }

    .link-share {
        padding: 9px;
        margin: 9px 0;
        gap: 7px;
    }

    .url-display {
        padding: 7px 10px;
        gap: 6px;
    }

    .url-label {
        font-size: 11px;
    }

    .url-text {
        font-size: 11px;
    }

    .copy-link-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pager-wrap {
        padding: 11px 0;
        gap: 4px;
    }

    .pg-link,
    .pg-current {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* ============================
   LARGE PHONE 480–768px
============================ */
@media (min-width: 480px) and (max-width: 768px) {
    .ch-links a {
        font-size: 14px;
    }

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

/* ============================
   SMALL PHONE <= 479px
============================ */
@media (max-width: 479px) {
    .brand-name {
        font-size: 18px;
    }

    .badge-addr {
        font-size: 14px;
    }

    .ch-label {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

    .ch-links {
        width: 85%;
        gap: 3px;
        padding: 6px 3px;
    }

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

    .player-wrapper {
        height: 56.25vw;
        max-height: 300px;
        margin-bottom: 9px;
    }

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

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

    .dl-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .link-share {
        padding: 8px;
        gap: 6px;
    }

    .copy-link-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
}

/* ============================
   PC ONLY
============================ */
@media (min-width: 769px) {
    .hide-pc {
        display: none !important;
    }
}
