/* Wisconsin Red - Video Portal Template */

:root {
    --red: #c5050c;
    --red-dark: #9b0000;
    --red-deep: #7a0000;
    --white: #ffffff;
    --off-white: #f5f1eb;
    --bg-root: #f2ede6;
    --bg-panel: #ffffff;
    --bg-card: #faf8f5;
    --text-main: #1a1a1a;
    --text-muted: #5a5a5a;
    --text-light: #888;
    --border: #d9d0c4;
    --shadow: rgba(0,0,0,0.08);
    --shadow-lg: rgba(0,0,0,0.18);
    --grad-red: linear-gradient(135deg, #c5050c 0%, #9b0000 100%);
    --rd: 5px;
    --rd-sm: 3px;
    --ease: all 0.22s ease;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--bg-root);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
}

/* ===== HEADER - NOT sticky ===== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--red);
    padding: 8px 0;
}

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

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

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--ease);
}

.logo-link:hover { opacity: 0.85; }

.logo-emblem {
    width: 44px;
    height: 44px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-emblem span {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1;
}

.site-title-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    font-family: Georgia, serif;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: 0.3px;
    display: block;
}

.domain-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--rd-sm);
    padding: 6px 14px;
    flex-shrink: 0;
}

.domain-tag-txt {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    font-family: Arial, sans-serif;
}

.domain-url-txt {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===== WRAPPER ===== */
.outer-wrap { max-width: 1080px; margin: 0 auto; padding: 0 14px; }
.row-gap { padding: 7px 0; }

/* ===== BANNER ===== */
.promo-banner { width: 100%; margin: 4px 0; overflow: hidden; line-height: 0; }
.promo-banner img { width: 100%; display: block; }

/* ===== NAVIGATION ===== */
.cat-nav {
    background: var(--bg-panel);
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}

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

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

.cat-zone-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 5px;
    flex-shrink: 0;
    background: var(--red);
    font-family: Arial, sans-serif;
}

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

.cat-link-row a {
    display: inline-block;
    color: var(--text-main);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--rd-sm);
    transition: var(--ease);
    background: var(--off-white);
    border: 1px solid var(--border);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.cat-link-row a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.cat-link-row a.active { background: var(--red); color: #fff; border-color: var(--red); font-weight: 700; }

/* ===== SEARCH ===== */
.search-panel {
    background: var(--bg-panel);
    border-radius: var(--rd);
    padding: 10px 12px;
    margin-bottom: 7px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px var(--shadow);
}

#qsform { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; }

#qsform input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: var(--rd-sm);
    background: var(--off-white);
    color: var(--text-main);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: Arial, sans-serif;
}

#qsform input[type="text"]:focus {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(197,5,12,0.12);
}

#qsform input[type="text"]::placeholder { color: var(--text-light); }

#qsform button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--rd-sm);
    background: var(--grad-red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
    letter-spacing: 0.3px;
}

#qsform button:hover { background: var(--red-deep); box-shadow: 0 3px 10px rgba(197,5,12,0.3); }

/* ===== TAG CLOUD ===== */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 9px 12px;
    background: var(--bg-panel);
    border-radius: var(--rd);
    margin-bottom: 7px;
    border: 1px solid var(--border);
}

.kw-link {
    padding: 4px 11px;
    background: var(--off-white);
    border-radius: 3px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    transition: var(--ease);
    border: 1px solid var(--border);
    font-family: Arial, sans-serif;
}

.kw-link:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== CONTENT SECTIONS ===== */
.content-section { margin-bottom: 10px; }

.section-box {
    background: var(--bg-panel);
    border-radius: var(--rd);
    border: 1px solid var(--border);
    padding: 14px;
    box-shadow: 0 1px 4px var(--shadow);
}

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

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

.section-ttl { font-size: 18px; font-weight: 700; color: var(--text-main); margin: 0; font-family: Georgia, serif; }
.section-ttl a { color: var(--text-main); text-decoration: none; transition: var(--ease); }
.section-ttl a:hover { color: var(--red); }

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

.film-listing li { position: relative; }

.film-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rd-sm);
    aspect-ratio: 600 / 350;
    background: var(--off-white);
    border: 1px solid var(--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(0,0,0,0.65) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.film-cover:hover::after { opacity: 1; }
.film-cover:hover img { transform: scale(1.06); }
.film-cover:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(197,5,12,0.2); }

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

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

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

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

/* ===== VIDEO PLAYER ===== */
.player-stage {
    width: 100%;
    height: 620px;
    max-height: 620px;
    background: #000;
    border-radius: var(--rd);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px var(--shadow-lg);
    position: relative;
}

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

.MacPlayer { background: #000; border-radius: var(--rd); overflow: hidden; margin-bottom: 12px; box-shadow: 0 4px 18px var(--shadow-lg); }

/* ===== TORRENT PREVIEW ===== */
.preview-img-area { width: 100%; margin-top: 10px; }

.preview-img-area img,
.preview-img-area .img_item img {
    width: 100%;
    height: auto;
    border-radius: var(--rd-sm);
    border: 1px solid var(--border);
    display: block;
}

.preview-img-area .img_item { width: 100%; }

/* ===== DOWNLOAD BUTTONS ===== */
.action-btns {
    text-align: center;
    padding: 14px;
    background: var(--off-white);
    border-radius: var(--rd);
    margin: 12px 0;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--grad-red);
    color: #fff;
    text-decoration: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--ease);
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.down_btn:hover { background: var(--red-deep); box-shadow: 0 4px 14px rgba(197,5,12,0.35); }

/* ===== SHARE SECTION ===== */
.share-section {
    background: var(--off-white);
    border-radius: var(--rd);
    padding: 14px;
    margin: 12px 0;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--rd-sm);
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.share-label { font-weight: 700; font-size: 12px; color: var(--red); white-space: nowrap; flex-shrink: 0; font-family: Arial, sans-serif; }

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

.share-copy-btn {
    padding: 9px 16px;
    background: var(--grad-red);
    color: #fff;
    border: none;
    border-radius: var(--rd-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Arial, sans-serif;
}

.share-copy-btn:hover { background: var(--red-deep); box-shadow: 0 3px 10px rgba(197,5,12,0.3); }
.share-icon { font-size: 15px; }

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

.a_page_info, .page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--rd-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.a_page_info { background: #fff; color: var(--text-main); border: 1px solid var(--border); }
.a_page_info:hover { background: var(--red); border-color: var(--red); color: #fff; }
.page_info_focus { background: var(--grad-red); color: #fff; border: 1px solid var(--red-dark); cursor: default; }

/* ===== FOOTER ===== */
.site-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 3px solid var(--red);
    margin-top: 16px;
    background: #1a1a1a;
}

.site-footer p { margin: 6px 0; color: #aaa; font-size: 12px; font-family: Arial, sans-serif; }
.site-footer a { color: #aaa; text-decoration: none; transition: var(--ease); }
.site-footer a:hover { color: #fff; }

/* ===== FRIEND LINKS ===== */
.flinks-box { padding: 10px 12px; background: var(--bg-panel); border-radius: var(--rd); border: 1px solid var(--border); }
.flinks-box dl { margin: 0; }
.flinks-box dd { display: inline-block; margin: 3px 4px; }
.flinks-box a { color: var(--text-muted); text-decoration: none; transition: var(--ease); font-size: 13px; font-family: Arial, sans-serif; }
.flinks-box a:hover { color: var(--red); }

/* ===== UTILITIES ===== */
.clearfix::after { content: ""; display: table; clear: both; }
.hide-mob { display: block; }
.hide-desk { display: block; }

/* ===== TABLET / MOBILE ===== */
@media (max-width: 768px) {
    .outer-wrap { padding: 0 8px; }
    .row-gap { padding: 5px 0; }
    .site-title-text { font-size: 19px; }
    .branding-row { gap: 12px; }
    .logo-emblem { width: 36px; height: 36px; }
    .logo-emblem span { font-size: 18px; }
    .domain-badge { padding: 5px 10px; gap: 6px; }
    .domain-tag-txt { font-size: 10px; }
    .domain-url-txt { font-size: 15px; }

    /* Mobile nav: 15% label, 85% links, 4 per row */
    .cat-zone-name { width: 15%; font-size: 10px; padding: 7px 2px; text-align: center; }
    .cat-link-row { width: 85%; gap: 4px; padding: 7px 4px; }
    .cat-link-row a {
        font-size: 13px;
        padding: 4px 2px;
        text-align: center;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

    #qsform { flex-wrap: nowrap; gap: 5px; }
    #qsform input[type="text"] { min-width: 80px; padding: 8px 9px; font-size: 13px; }
    #qsform button { padding: 8px 9px; font-size: 12px; }

    .film-listing { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .player-stage { height: 56.25vw; max-height: 380px; margin-bottom: 10px; }
    .section-ttl { font-size: 15px; }
    .kw-link { font-size: 11px; padding: 3px 9px; }
    .down_btn { padding: 9px 13px; font-size: 13px; }
    .action-btns { padding: 10px 8px; gap: 7px; flex-wrap: nowrap; }
    .share-section { padding: 9px; gap: 7px; flex-wrap: nowrap; }
    .share-url-display { padding: 7px 9px; flex: 1; min-width: 0; }
    .share-label { font-size: 11px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 8px 10px; font-size: 12px; flex-shrink: 0; }
    .page_info_div { gap: 4px; padding: 12px 0; }
    .a_page_info, .page_info_focus { padding: 6px 10px; font-size: 12px; min-width: 30px; }
    .hide-mob { display: none !important; }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .branding-row { gap: 8px; }
    .site-title-text { font-size: 17px; }
    .logo-emblem { width: 32px; height: 32px; }
    .logo-emblem span { font-size: 16px; }
    .domain-url-txt { font-size: 13px; }
    .domain-tag-txt { font-size: 9px; }

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

    #qsform input[type="text"] { min-width: 60px; padding: 7px 7px; font-size: 12px; }
    #qsform button { padding: 7px 7px; font-size: 11px; }

    .film-listing { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .film-info h5 { font-size: 12px; }
    .section-ttl { font-size: 14px; }
    .down_btn { padding: 8px 9px; font-size: 12px; }
    .action-btns { padding: 8px 4px; gap: 5px; }
    .share-section { padding: 7px; gap: 5px; flex-wrap: nowrap; }
    .share-url-display { padding: 6px 7px; }
    .share-label { font-size: 10px; }
    .share-url { font-size: 10px; }
    .share-copy-btn { padding: 7px 8px; font-size: 11px; }
}

@media (min-width: 769px) { .hide-desk { display: none !important; } }

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