/* Film & Media Portal - Inspired by Clean Business UI */

:root {
    --clr-primary: #e8572a;
    --clr-primary-dark: #c94318;
    --clr-navy: #1d3557;
    --clr-navy-light: #2c4a70;
    --clr-gold: #f4a72b;
    --clr-white: #ffffff;
    --clr-bg: #f5f6f8;
    --clr-surface: #ffffff;
    --clr-surface2: #f0f2f5;
    --clr-text: #1a1a2e;
    --clr-text-muted: #5a6478;
    --clr-border: #e2e6ec;
    --clr-shadow-sm: rgba(29, 53, 87, 0.08);
    --clr-shadow-md: rgba(29, 53, 87, 0.15);
    --gradient-brand: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-gold) 100%);
    --gradient-navy: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
    --rounding: 8px;
    --rounding-sm: 5px;
    --speed: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* =====================
   HEADER / SITE BRANDING
   ===================== */
.site-header {
    background: var(--clr-white);
    border-bottom: 3px solid var(--clr-primary);
    padding: 0.55rem 0;
    box-shadow: 0 2px 10px var(--clr-shadow-sm);
}

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

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

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

.brand-title {
    font-size: 26px;
    font-weight: 900;
    font-style: normal;
    text-decoration: none;
    color: var(--clr-navy);
    letter-spacing: -0.5px;
    border-bottom: none;
}

.brand-title span.accent-dot {
    color: var(--clr-primary);
}

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: var(--clr-navy);
    border-radius: 4px;
}

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

.domain-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--clr-white);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.2px;
}

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

.section-block {
    padding: 10px 0;
}

/* =====================
   CATEGORY NAVIGATION
   ===================== */
.catmenu-wrap {
    background: var(--clr-surface);
    border-radius: var(--rounding);
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow-sm);
}

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

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

.catmenu-zone {
    font-size: 13px;
    font-weight: 800;
    color: var(--clr-white);
    background: var(--gradient-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: 9px 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

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

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

.catmenu-links a:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    box-shadow: 0 3px 8px rgba(232, 87, 42, 0.25);
}

.catmenu-links a.active {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(232, 87, 42, 0.25);
}

/* =====================
   SEARCH BAR
   ===================== */
.searchbar-box {
    background: var(--clr-surface);
    border-radius: var(--rounding);
    padding: 11px 12px;
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow-sm);
}

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

.searchbar-box input[type="text"] {
    flex: 1;
    min-width: 80px;
    padding: 9px 13px;
    border: 2px solid var(--clr-border);
    border-radius: var(--rounding-sm);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-size: 14px;
    transition: var(--speed);
    outline: none;
    font-family: inherit;
}

.searchbar-box input[type="text"]:focus {
    border-color: var(--clr-primary);
    background: var(--clr-white);
    box-shadow: 0 0 0 3px rgba(232, 87, 42, 0.1);
}

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

.searchbar-box button {
    padding: 9px 14px;
    border: none;
    border-radius: var(--rounding-sm);
    background: var(--gradient-brand);
    color: var(--clr-white);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--speed);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.searchbar-box button:hover {
    box-shadow: 0 4px 12px rgba(232, 87, 42, 0.35);
    filter: brightness(1.05);
}

/* =====================
   HOT TAGS (GRID)
   ===================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 12px;
    background: var(--clr-surface);
    border-radius: var(--rounding);
    margin-bottom: 10px;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow-sm);
}

.tag-item {
    padding: 5px 13px;
    background: var(--clr-surface2);
    border-radius: 30px;
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--speed);
    border: 1px solid var(--clr-border);
}

.tag-item:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
    border-color: var(--clr-primary);
    box-shadow: 0 2px 8px rgba(232, 87, 42, 0.2);
}

/* =====================
   SECTION HEADINGS
   ===================== */
.film-section {
    margin-bottom: 16px;
}

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

.section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.section-ttl {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--clr-navy);
    letter-spacing: -0.2px;
}

.section-ttl a {
    color: var(--clr-navy);
    text-decoration: none;
    transition: var(--speed);
}

.section-ttl a:hover {
    color: var(--clr-primary);
}

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

.filmcard-grid li {
    animation: riseUp 0.5s ease backwards;
}

.filmcard-grid li:nth-child(1) { animation-delay: 0.04s; }
.filmcard-grid li:nth-child(2) { animation-delay: 0.08s; }
.filmcard-grid li:nth-child(3) { animation-delay: 0.12s; }
.filmcard-grid li:nth-child(4) { animation-delay: 0.16s; }
.filmcard-grid li:nth-child(5) { animation-delay: 0.20s; }
.filmcard-grid li:nth-child(6) { animation-delay: 0.24s; }
.filmcard-grid li:nth-child(7) { animation-delay: 0.28s; }
.filmcard-grid li:nth-child(8) { animation-delay: 0.32s; }

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

.film-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rounding);
    aspect-ratio: 600 / 350;
    background: var(--clr-surface2);
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 6px var(--clr-shadow-sm);
}

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

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

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

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

.film-thumb:hover {
    box-shadow: 0 8px 22px var(--clr-shadow-md);
}

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

.film-meta h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--clr-text);
}

.film-meta h5 a {
    color: var(--clr-text);
    text-decoration: none;
    transition: var(--speed);
    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-wrap {
    width: 100%;
    height: 620px;
    max-height: 620px;
    margin-bottom: 16px;
    background: #000;
    border-radius: var(--rounding);
    overflow: hidden;
    box-shadow: 0 6px 24px var(--clr-shadow-md);
    position: relative;
}

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

.MacPlayer {
    background: #000;
    border-radius: var(--rounding);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px var(--clr-shadow-md);
}

/* =====================
   TORRENT PREVIEW
   ===================== */
.preview-grid {
    /* container for torrent capture */
}

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

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

/* =====================
   DOWNLOAD BUTTONS
   ===================== */
.btn-row {
    text-align: center;
    padding: 14px;
    background: var(--clr-surface);
    border-radius: var(--rounding);
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.down_btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--gradient-brand);
    color: var(--clr-white);
    text-decoration: none;
    border-radius: var(--rounding-sm);
    font-weight: 700;
    font-size: 14px;
    transition: var(--speed);
    margin: 0;
    border: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.down_btn:hover {
    box-shadow: 0 5px 16px rgba(232, 87, 42, 0.35);
    filter: brightness(1.06);
}

/* =====================
   SHARE SECTION
   ===================== */
.share-section {
    background: var(--clr-surface);
    border-radius: var(--rounding);
    padding: 16px 18px;
    margin: 14px 0;
    border: 1px solid var(--clr-border);
    box-shadow: 0 1px 5px var(--clr-shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-url-display {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--rounding-sm);
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

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

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

.share-copy-btn {
    padding: 10px 20px;
    background: var(--gradient-navy);
    color: var(--clr-white);
    border: none;
    border-radius: var(--rounding-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--speed);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.share-copy-btn:hover {
    box-shadow: 0 4px 14px rgba(29, 53, 87, 0.3);
    filter: brightness(1.1);
}

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

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

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

.a_page_info,
.page_info_focus {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--rounding-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--speed);
    min-width: 36px;
    text-align: center;
}

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

.a_page_info:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-white);
}

.page_info_focus {
    background: var(--gradient-brand);
    color: var(--clr-white);
    border: 1px solid transparent;
    cursor: default;
}

/* =====================
   FOOTER
   ===================== */
.page-footer {
    padding: 22px 0;
    text-align: center;
    border-top: 2px solid var(--clr-border);
    margin-top: 24px;
    background: var(--clr-surface);
}

.copyright p {
    margin: 7px 0;
    color: var(--clr-text-muted);
    font-size: 13px;
}

.copyright a {
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: var(--speed);
}

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

/* =====================
   FRIENDLY LINKS
   ===================== */
.link-zone {
    padding: 11px;
    background: var(--clr-surface);
    border-radius: var(--rounding);
    border: 1px solid var(--clr-border);
}

.link-zone dl {
    margin: 0;
}

.link-zone dd {
    display: inline-block;
    margin: 3px;
}

.link-zone a {
    color: var(--clr-navy);
    text-decoration: none;
    transition: var(--speed);
    font-size: 13px;
}

.link-zone a:hover {
    color: var(--clr-primary);
}

.pd5 {
    padding: 3px 7px;
    border-radius: 3px;
    display: inline-block;
}

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

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

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

    .site-header {
        padding: 0.45rem 0;
    }

    .brand-block {
        gap: 10px;
    }

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

    .domain-badge {
        padding: 4px 10px;
        gap: 5px;
    }

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

    .domain-value {
        font-size: 14px;
    }

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

    /* Mobile nav: label 15% + links 85%, 2 rows of 4 */
    .catmenu-row .catmenu-zone {
        width: 15%;
        font-size: 10px;
        padding: 7px 2px;
        line-height: 1.3;
        word-break: keep-all;
    }

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

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

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

    .searchbar-box {
        padding: 9px 10px;
    }

    .searchbar-box form {
        flex-wrap: nowrap;
        gap: 5px;
    }

    .searchbar-box input[type="text"] {
        min-width: 60px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .searchbar-box button {
        padding: 8px 9px;
        font-size: 11px;
    }

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

    .film-section {
        margin-bottom: 12px;
    }

    .section-ttl {
        font-size: 17px;
    }

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

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

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

    .btn-row {
        padding: 10px 8px;
        margin: 10px 0;
        gap: 7px;
    }

    .share-section {
        padding: 10px;
        margin: 12px 0;
        gap: 7px;
        flex-wrap: nowrap;
    }

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

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

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

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

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

    .player-wrap {
        height: 56.25vw;
        max-height: 380px;
        margin-bottom: 12px;
    }

    .page_info_div {
        padding: 12px 0;
        gap: 4px;
    }

    .a_page_info,
    .page_info_focus {
        padding: 6px 11px;
        font-size: 12px;
        min-width: 32px;
    }

    .page-footer {
        padding: 18px 0;
        margin-top: 18px;
    }
}

/* =====================
   RESPONSIVE — LARGE PHONE (481–768px)
   ===================== */
@media (min-width: 481px) and (max-width: 768px) {
    .catmenu-row .catmenu-links a {
        font-size: 13px;
    }

    .catmenu-row .catmenu-zone {
        font-size: 10px;
    }
}

/* =====================
   RESPONSIVE — SMALL PHONE (max 480px)
   ===================== */
@media (max-width: 480px) {
    .brand-title {
        font-size: 18px;
    }

    .domain-badge {
        padding: 3px 8px;
    }

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

    .domain-value {
        font-size: 13px;
    }

    .catmenu-row .catmenu-zone {
        width: 15%;
        font-size: 10px;
        padding: 6px 2px;
    }

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

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

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

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

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

    .player-wrap {
        height: 56.25vw;
        max-height: 280px;
    }

    .btn-row {
        gap: 5px;
        padding: 9px 5px;
    }

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

    .share-section {
        padding: 8px;
        gap: 5px;
    }

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

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

/* =====================
   HIDE UTILITIES
   ===================== */
.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; }
}
