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

:root {
    --bg: #121212;
    --bg-card: #181818;
    --bg-hover: #282828;
    --bg-muted: #2a2a2a;
    --bg-input: #242424;
    --green: #1db954;
    --green-dk: #169c44;
    --green-lt: rgba(29,185,84,.12);
    --white: #ffffff;
    --txt: #ffffff;
    --txt2: #b3b3b3;
    --txt3: #6a6a6a;
    --border: #282828;
    --border2: #333333;
    --shadow1: 0 2px 8px rgba(0,0,0,.5);
    --shadow2: 0 4px 16px rgba(0,0,0,.6);
    --shadow3: 0 8px 30px rgba(0,0,0,.7);
    --radius: 6px;
    --radius2: 4px;
    --radius3: 500px;
}

html { font-size: 15px; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'Circular','Helvetica Neue',Helvetica,Arial,'PingFang SC','Microsoft YaHei',sans-serif;
    line-height: 1.6;
}

a { color: var(--green); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-dk); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.sp::after { content: ''; display: table; clear: both; }

/* ===== WRAPPER ===== */
.sp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SITE HEADER ===== */
.sp-header {
    background: #000000;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.sp-header .sp-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
}

.sp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

/* Spotify-style: white bold site name */
.sp-site-name {
    font-size: 1.38rem;
    font-weight: 900;
    color: var(--white);
    font-style: normal;
    letter-spacing: -.4px;
    text-decoration: none;
    border-bottom: none;
    line-height: 1;
}

.sp-domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    border-radius: var(--radius3);
    padding: 5px 15px;
    box-shadow: 0 2px 10px rgba(29,185,84,.3);
}

.sp-domain-pill .spd-tip {
    font-size: 0.66rem;
    color: rgba(0,0,0,.6);
    white-space: nowrap;
    letter-spacing: .4px;
    font-weight: 600;
}

.sp-domain-pill .spd-url {
    font-size: 1.06rem;
    font-weight: 800;
    color: #000000;
    white-space: nowrap;
    letter-spacing: .1px;
}

/* ===== BANNER ===== */
.sp-hero {
    margin: 5px 0 3px;
    border-radius: var(--radius);
    overflow: hidden;
}
.sp-hero img { border-radius: var(--radius); width: 100%; }

/* ===== CATEGORY NAV ===== */
.sp-nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.sp-nav-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    min-height: 38px;
}

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

.sp-zone-lbl {
    background: #0d0d0d;
    color: var(--txt3);
    font-size: .64rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px;
    width: 62px;
    min-width: 62px;
    border-right: 1px solid var(--border);
    text-align: center;
    line-height: 1.3;
    letter-spacing: .3px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sp-zone-links {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    padding: 3px 8px;
    gap: 3px;
    flex: 1;
}

.sp-zone-links a {
    font-size: .79rem;
    color: var(--txt2);
    padding: 4px 4px;
    border-radius: var(--radius3);
    transition: all .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.sp-zone-links a:hover {
    background: var(--bg-hover);
    color: var(--white);
    border-color: var(--border2);
}

.sp-zone-links a.active {
    background: var(--green);
    color: #000;
    border-color: var(--green);
    font-weight: 700;
}

/* ===== SEARCH ===== */
.sp-search-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.sp-search-card form {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.sp-search-card input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 38px;
    border: none;
    border-radius: var(--radius3);
    padding: 0 16px;
    font-size: .87rem;
    color: var(--white);
    background: var(--bg-input);
    outline: none;
    transition: background .18s, box-shadow .18s;
    font-family: inherit;
}

.sp-search-card input[type="text"]::placeholder { color: var(--txt3); }

.sp-search-card input[type="text"]:focus {
    background: var(--bg-hover);
    box-shadow: 0 0 0 2px var(--green);
}

.sp-search-card button {
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius3);
    background: var(--bg-hover);
    color: var(--txt2);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
    font-family: inherit;
    letter-spacing: .3px;
}

.sp-search-card button:hover {
    background: var(--bg-muted);
    color: var(--white);
}

.sp-search-card button[value="1"] {
    background: var(--green);
    color: #000;
}
.sp-search-card button[value="1"]:hover {
    background: var(--green-dk);
    transform: scale(1.03);
}

.sp-search-card button[value="2"] {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--border2);
}
.sp-search-card button[value="2"]:hover {
    border-color: var(--white);
    background: var(--bg-hover);
}

/* ===== HOT TAGS ===== */
.sp-hot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 4px 0;
    box-shadow: var(--shadow1);
}

.sp-hot-card h4 {
    font-size: .75rem;
    font-weight: 700;
    color: var(--txt2);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.sp-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sp-tag-row .sp-tag {
    display: inline-block;
    background: var(--bg-hover);
    color: var(--txt2);
    border: 1px solid var(--border2);
    border-radius: var(--radius3);
    padding: 3px 12px;
    font-size: .74rem;
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}

.sp-tag-row .sp-tag:hover {
    background: var(--bg-muted);
    color: var(--white);
    border-color: rgba(255,255,255,.2);
    transform: scale(1.03);
}

/* ===== CONTENT SECTION ===== */
.sp-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 13px 10px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

.sp-sec-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sp-sec-hd h3 {
    font-size: 1.0rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -.1px;
}

.sp-sec-hd h3 a { color: var(--white); }
.sp-sec-hd h3 a:hover { color: var(--green); }

.sp-sec-hd h4 {
    font-size: .97rem;
    font-weight: 800;
    color: var(--white);
}

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

.sp-grid li {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-hover);
    transition: background .2s, transform .2s, box-shadow .2s;
}

.sp-grid li:hover {
    background: var(--bg-muted);
    box-shadow: var(--shadow3);
    transform: translateY(-3px);
}

.sp-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 350;
    overflow: hidden;
    background: var(--bg-muted);
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.sp-thumb:hover img { transform: scale(1.05); }

.sp-caption {
    padding: 7px 8px 8px;
    border-top: 1px solid var(--border);
}

.sp-caption h5 {
    font-size: .77rem;
    font-weight: 500;
    color: var(--txt2);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sp-caption h5 a { color: var(--txt2); }
.sp-caption h5 a:hover { color: var(--white); }

/* ===== PAGINATION ===== */
.sp-pager {
    margin: 13px 0 5px;
    display: flex;
    justify-content: center;
}

.sp-pager-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.sp-pager-row a.spp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border2);
    border-radius: var(--radius2);
    font-size: .82rem;
    color: var(--txt2);
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}

.sp-pager-row a.spp-btn:hover {
    background: var(--bg-muted);
    border-color: rgba(255,255,255,.2);
    color: var(--white);
}

.sp-pager-row a.spp-btn-on {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: var(--radius2);
    font-size: .82rem;
    font-weight: 800;
    color: #000;
    cursor: default;
    box-shadow: 0 0 14px rgba(29,185,84,.4);
}

/* ===== FOOTER ===== */
.sp-flink-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 9px 13px;
    margin: 5px 0;
    box-shadow: var(--shadow1);
}

.sp-flinks {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sp-flinks dd { display: inline; }

.sp-flinks a {
    display: inline-block;
    font-size: .73rem;
    color: var(--txt3);
    padding: 2px 10px;
    border-radius: var(--radius3);
    border: 1px solid var(--border);
    background: var(--bg-hover);
    text-decoration: none;
    transition: all .15s;
}

.sp-flinks a:hover {
    color: var(--white);
    border-color: var(--border2);
    background: var(--bg-muted);
}

.sp-cr {
    text-align: center;
    padding: 8px 0 14px;
    color: var(--txt3);
    font-size: .72rem;
}

/* ===== DETAIL PAGES ===== */
.sp-dtl-title {
    line-height: 1.8;
    text-align: center;
    padding: 13px 16px;
    font-size: .97rem;
    margin: 5px 0;
    word-break: break-all;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    color: var(--white);
}

.sp-dtl-title a {
    color: var(--green);
    font-weight: 700;
    margin-right: 6px;
    font-size: .8rem;
    background: var(--green-lt);
    padding: 1px 8px;
    border-radius: var(--radius2);
}

.sp-dtl-info {
    font-size: .9rem;
    line-height: 2;
    padding: 15px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow1);
    margin: 5px 0;
    color: var(--txt2);
}

.sp-preview-box {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.sp-preview-box picture,
.sp-preview-box img {
    width: 100%;
    height: auto;
    border-radius: var(--radius2);
    display: block;
}

/* ===== DL BUTTONS ===== */
.sp-dl-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}

.sp-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--radius3);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s, transform .14s, box-shadow .18s;
    text-decoration: none;
    font-family: inherit;
    letter-spacing: .5px;
    box-shadow: 0 3px 12px rgba(29,185,84,.35);
}

.sp-dl-btn:hover {
    background: var(--green-dk);
    color: #000;
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(29,185,84,.5);
}

.sp-cli-hint {
    text-align: center;
    padding: 7px;
    font-size: .82rem;
}

.sp-cli-hint a { color: var(--green); font-weight: 600; }
.sp-cli-hint a:hover { color: var(--green-dk); }

/* ===== SHARE ===== */
.sp-share-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 13px;
    margin: 5px 0;
    flex-wrap: wrap;
}

.sp-share-bar .sps-lbl {
    font-size: .72rem;
    color: var(--txt3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.sp-share-bar .sps-url {
    font-size: .78rem;
    color: var(--txt2);
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.sp-share-bar .sps-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--radius3);
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .12s;
    flex-shrink: 0;
    font-family: inherit;
}

.sp-share-bar .sps-btn:hover {
    background: var(--green-dk);
    transform: scale(1.03);
}

/* ===== VIS HELPERS ===== */
.sp-pc { display: block; }
.sp-mb { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sp-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sp-pc { display: none; }
    .sp-mb { display: block; }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .sp-site-name { font-size: 1.08rem; }
    .sp-domain-pill .spd-url { font-size: .9rem; }

    .sp-nav-row { align-items: stretch; }

    .sp-zone-lbl {
        width: 15%;
        min-width: 15%;
        max-width: 15%;
        font-size: 10px;
        padding: 3px 1px;
        letter-spacing: 0;
        line-height: 1.4;
        word-break: break-all;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sp-zone-links {
        width: 85%;
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
        padding: 3px 4px;
        align-items: center;
    }

    .sp-zone-links a {
        font-size: 12px;
        padding: 4px 2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    /* Search: one row, no wrap */
    .sp-search-card form {
        flex-wrap: nowrap;
        gap: 3px;
    }

    .sp-search-card input[type="text"] {
        height: 34px;
        font-size: .74rem;
        padding: 0 8px;
    }

    .sp-search-card button {
        height: 34px;
        padding: 0 7px;
        font-size: .69rem;
    }

    /* Film grid 2 cols */
    .sp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .sp-thumb { aspect-ratio: 600 / 350; }
    .sp-caption h5 { font-size: .71rem; }
    .sp-section { padding: 10px 10px 8px; }
    .sp-dl-btn { padding: 9px 16px; font-size: .84rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .sp-zone-lbl { font-size: 10px; }
    .sp-zone-links a { font-size: 13px; }
}

@media (max-width: 380px) {
    .sp-zone-lbl { font-size: 10px; }
    .sp-zone-links a { font-size: 12px; }
    .sp-search-card button { padding: 0 5px; font-size: .63rem; }
}
