/* Film Portal — Clean SaaS Theme (BugSnag-inspired) */

:root {
    --teal:          #1e6aad;
    --teal-dark:     #155a94;
    --teal-dim:      rgba(30,106,173,0.09);
    --teal-mid:      rgba(30,106,173,0.15);

    --navy:          #1a3a5c;
    --navy-mid:      #1f4a72;

    --mint-bg:       #f2f8f4;
    --mint-light:    #eaf4ee;

    --bg-root:       #ffffff;
    --bg-section:    #f7f9fc;
    --bg-card:       #ffffff;
    --bg-input:      #f4f7fb;
    --bg-muted:      #eef2f7;

    --ink-dark:      #0d2137;
    --ink-mid:       #2c4a63;
    --ink-soft:      #5a7a94;
    --ink-faint:     #9ab0c4;

    --line:          #dde6ef;
    --line-mid:      #c8d8e8;

    --green-accent:  #2bb574;
    --green-dim:     rgba(43,181,116,0.1);

    --radius-xs:     3px;
    --radius-sm:     7px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     22px;
    --radius-pill:   50px;

    --shadow-xs:     0 1px 3px rgba(26,58,92,0.06);
    --shadow-sm:     0 2px 8px rgba(26,58,92,0.09);
    --shadow-md:     0 4px 16px rgba(26,58,92,0.12);
    --shadow-lg:     0 8px 28px rgba(26,58,92,0.15);

    --ease: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-root);
    color: var(--ink-dark);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.bs-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0;
    box-shadow: var(--shadow-xs);
}

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

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

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

.bs-logo-link:hover { opacity: 0.82; }

.bs-site-name {
    font-size: 26px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.4px;
    font-style: normal;
    text-decoration: none;
    border-bottom: none;
}

.bs-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--teal);
    border-radius: var(--radius-pill);
    transition: var(--ease);
    border: none;
}

.bs-domain-pill:hover {
    background: var(--teal-dark);
    box-shadow: 0 4px 14px rgba(30,106,173,0.3);
    transform: translateY(-1px);
}

.bs-domain-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.bs-domain-url {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.1px;
}

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

.bs-zone {
    padding: 8px 0;
}

/* ===================== BANNER ===================== */
.bs-banner {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin: 2px 0;
    border: 1px solid var(--line);
}

.bs-banner a { display: block; line-height: 0; }
.bs-banner img { width: 100%; display: block; border-radius: var(--radius-md); }

/* ===================== NAV ===================== */
.bs-nav-panel {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

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

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

.bs-nav-zone {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-dim);
    width: 10%;
    min-width: 52px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    flex-shrink: 0;
    border-right: 2px solid var(--line-mid);
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.bs-nav-links {
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 9px 10px;
    align-items: center;
    background: var(--bg-card);
}

.bs-nav-links a {
    display: inline-block;
    color: var(--ink-mid);
    text-decoration: none;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: var(--ease);
    background: var(--bg-input);
    border: 1px solid var(--line);
    white-space: nowrap;
    text-align: center;
    width: calc((100% - 42px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 13px;
    font-weight: 500;
}

.bs-nav-links a:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(30,106,173,0.2);
}

.bs-nav-links a.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(30,106,173,0.2);
}

/* ===================== SEARCH ===================== */
.bs-searchbox {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.bs-searchbox form {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.bs-searchbox input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 16px;
    border: 1.5px solid var(--line-mid);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--ink-dark);
    font-size: 14px;
    transition: var(--ease);
    outline: none;
    font-family: inherit;
}

.bs-searchbox input[type="text"]:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-dim);
}

.bs-searchbox input[type="text"]::placeholder { color: var(--ink-faint); }

.bs-searchbox button {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.bs-searchbox button:hover {
    background: var(--teal-dark);
    box-shadow: 0 4px 14px rgba(30,106,173,0.28);
    transform: translateY(-1px);
}

/* ===================== TAG CLOUDS ===================== */
.bs-taglist {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 11px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.bs-tagitem {
    padding: 4px 14px;
    background: var(--bg-muted);
    border-radius: var(--radius-xl);
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--ease);
    border: 1px solid var(--line-mid);
}

.bs-tagitem:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(30,106,173,0.18);
}

/* ===================== SECTIONS ===================== */
.bs-module {
    margin-bottom: 14px;
}

.bs-module-hd {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--line);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-module-hd::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 42px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.bs-module-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.bs-module-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.bs-module-title a:hover { color: var(--teal); }

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

.bs-filmgrid li {
    animation: bs-fade 0.42s ease backwards;
}

.bs-filmgrid li:nth-child(1) { animation-delay: 0.03s; }
.bs-filmgrid li:nth-child(2) { animation-delay: 0.06s; }
.bs-filmgrid li:nth-child(3) { animation-delay: 0.09s; }
.bs-filmgrid li:nth-child(4) { animation-delay: 0.12s; }
.bs-filmgrid li:nth-child(5) { animation-delay: 0.15s; }
.bs-filmgrid li:nth-child(6) { animation-delay: 0.18s; }
.bs-filmgrid li:nth-child(7) { animation-delay: 0.21s; }
.bs-filmgrid li:nth-child(8) { animation-delay: 0.24s; }

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

.bs-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 600 / 350;
    background: var(--bg-muted);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: var(--ease);
}

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

.bs-cover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--teal);
}

.bs-cover:hover img { transform: scale(1.06); }

.bs-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,92,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.bs-cover:hover::after { opacity: 1; }

.bs-caption {
    padding: 7px 0 0;
}

.bs-caption h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--ink-mid);
}

.bs-caption h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--ease);
}

.bs-caption h5 a:hover { color: var(--teal); }

/* ===================== DETAIL PANELS ===================== */
.bs-entry-header {
    line-height: 1.8;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    margin: 12px 0;
    word-break: break-all;
    background: linear-gradient(135deg, var(--teal-dim) 0%, var(--mint-light) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-mid);
}

.bs-entry-header a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    margin-right: 8px;
}

.bs-entry-specs {
    font-size: 15px;
    line-height: 1.9;
    padding: 20px 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin: 10px 0;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    color: var(--ink-mid);
    border-left: 4px solid var(--teal);
}

.bs-imgbox {
    margin-top: 12px;
}

.bs-imgbox picture {
    display: block;
    width: 100%;
}

.bs-imgbox picture img,
.bs-imgbox img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

/* ===================== ACTION BUTTONS ===================== */
.bs-btns-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 12px;
    margin: 10px 0;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.bs-cta-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--teal);
    color: #fff !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: 0 3px 12px rgba(30,106,173,0.22);
    letter-spacing: 0.02em;
    font-family: inherit;
}

.bs-cta-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(30,106,173,0.3);
}

/* ===================== CLIENT LINKS ===================== */
.bs-getapp-pc,
.bs-getapp-mb {
    text-align: center;
    padding: 14px;
}

.bs-getapp-pc a,
.bs-getapp-mb a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--ease);
}

.bs-getapp-pc a:hover,
.bs-getapp-mb a:hover { color: var(--navy); }

/* ===================== SHARE ===================== */
.bs-sharepanel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 10px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    flex-wrap: nowrap;
}

.share-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-mid);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.share-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-url {
    font-size: 12px;
    color: var(--ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    font-family: 'Courier New', monospace;
}

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

.share-copy-btn:hover {
    background: #1e9a60;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(43,181,116,0.28);
}

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

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

.bs-page-link,
.bs-page-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: var(--ease);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.bs-page-link {
    background: var(--bg-card);
    color: var(--ink-mid);
    border: 1.5px solid var(--line-mid);
}

.bs-page-link:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 3px 10px rgba(30,106,173,0.18);
}

.bs-page-now {
    background: var(--teal);
    color: #fff;
    border: 1.5px solid var(--teal);
    cursor: default;
}

/* ===================== FOOTER ===================== */
.bs-flinks {
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.bs-flinks dl { margin: 0; }

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

.bs-flinks a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
    transition: var(--ease);
}

.bs-flinks a:hover { color: var(--teal); }

.pd5 { padding: 3px 6px; }

.bs-footerbar {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--line);
    margin-top: 16px;
    background: var(--bg-section);
}

.bs-footerbar p {
    margin: 5px 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.bs-footerbar a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: var(--ease);
}

.bs-footerbar a:hover { color: var(--teal); }

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

.show-pc { display: block; }
.show-mb { display: block; }

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

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

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .bs-wrap  { padding: 0 8px; }

    .bs-header { padding: 0.5rem 0; }
    .bs-brand  { gap: 10px; }

    .bs-site-name    { font-size: 20px; }
    .bs-domain-pill  { padding: 4px 12px; gap: 6px; }
    .bs-domain-tag   { font-size: 10px; }
    .bs-domain-url   { font-size: 16px; }

    .bs-zone { padding: 6px 0; }

    /* Mobile nav: zone 15% / links 85% / 2×4 grid */
    .bs-nav-zone {
        width: 15%;
        font-size: 10px;
        padding: 8px 2px;
        white-space: normal;
        word-break: break-all;
        overflow: visible;
    }

    .bs-nav-links {
        width: 85%;
        gap: 4px;
        padding: 8px 5px;
    }

    .bs-nav-links a {
        font-size: 12px;
        padding: 4px 2px;
        width: calc((100% - 12px) / 4);
        flex-shrink: 0;
        flex-grow: 0;
    }

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

    .bs-module-title { font-size: 17px; }
    .bs-caption h5   { font-size: 12px; }

    .bs-searchbox { padding: 10px; }
    .bs-searchbox form { gap: 6px; }
    .bs-searchbox input[type="text"] { min-width: 90px; padding: 9px 11px; font-size: 13px; }
    .bs-searchbox button { padding: 9px 10px; font-size: 12px; }

    .bs-taglist  { padding: 9px 10px; gap: 6px; }
    .bs-tagitem  { padding: 4px 11px; font-size: 12px; }

    .bs-btns-row { padding: 12px 8px; gap: 8px; }
    .bs-cta-btn  { padding: 9px 18px; font-size: 13px; }

    .bs-sharepanel     { padding: 10px; gap: 8px; margin: 8px 0; }
    .share-url-display { padding: 8px 10px; gap: 6px; }
    .share-label       { font-size: 10px; }
    .share-url         { font-size: 10px; }
    .share-copy-btn    { padding: 8px 11px; font-size: 12px; }
    .share-icon        { font-size: 14px; }

    .bs-page-link,
    .bs-page-now { padding: 6px 10px; font-size: 12px; min-width: 30px; }

    .bs-module { margin-bottom: 10px; }

    .bs-entry-header { padding: 13px 14px; font-size: 14px; margin: 10px 0; }
    .bs-entry-specs  { padding: 14px 13px; font-size: 14px; margin: 8px 0; }
}

@media (max-width: 480px) {
    .bs-header { padding: 0.4rem 0; }

    .bs-site-name    { font-size: 18px; }
    .bs-domain-pill  { padding: 4px 10px; }
    .bs-domain-tag   { font-size: 9px; }
    .bs-domain-url   { font-size: 15px; }

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

    .bs-nav-links {
        width: 85%;
        gap: 3px;
        padding: 6px 4px;
    }

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

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

    .bs-searchbox input[type="text"] { min-width: 70px; padding: 8px 9px; font-size: 12px; }
    .bs-searchbox button { padding: 8px 8px; font-size: 11px; }

    .bs-module-title { font-size: 15px; }
    .bs-cta-btn { padding: 8px 14px; font-size: 12px; }

    .bs-sharepanel  { padding: 8px; gap: 6px; }
    .share-copy-btn { padding: 7px 10px; font-size: 11px; }
}

@media (min-width: 769px) {
    .bs-filmgrid  { grid-template-columns: repeat(4, 1fr); }
    .bs-nav-zone  { font-size: 14px; }
    .bs-nav-links a { font-size: 13px; }
}
