/* Elegant Rose Theme - Light & Feminine */

:root {
    --rose: #e8547a;
    --rose-dark: #cc3a62;
    --rose-light: #f9dee7;
    --rose-pale: #fdf0f4;
    --rose-border: #f5c5d4;
    --teal: #5bbfb5;
    --txt-main: #333340;
    --txt-body: #555566;
    --txt-muted: #8888a0;
    --txt-light: #aaaabc;
    --bg-page: #f9f9fb;
    --bg-white: #ffffff;
    --bdr: #ebebf2;
    --bdr-rose: #f2cdd8;
    --shadow: rgba(232, 84, 122, 0.08);
    --shadow-sm: rgba(0, 0, 0, 0.06);
    --rad: 8px;
    --rad-sm: 5px;
    --rad-pill: 20px;
    --trans: all 0.22s ease;
}

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

body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', Arial, sans-serif;
    background: var(--bg-page);
    color: var(--txt-main);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.rx-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--bdr-rose);
    padding: 0.55rem 0;
    box-shadow: 0 2px 12px rgba(232, 84, 122, 0.1);
}

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

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

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

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

.rx-site-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--txt-main);
    letter-spacing: 1px;
    font-style: normal;
    border-bottom: none;
    text-decoration: none;
}

.rx-site-name b {
    color: var(--rose);
    font-weight: 900;
}

.rx-domain-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: var(--rose-pale);
    border-radius: var(--rad-pill);
    border: 1px solid var(--bdr-rose);
}

.rx-domain-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--rose);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.rx-domain-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--txt-main);
    font-family: 'Courier New', 'Consolas', monospace;
    letter-spacing: 0.3px;
}

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

.rx-blk {
    padding: 6px 0;
}

/* ========== NAVIGATION ========== */
.rx-nav-panel {
    background: var(--bg-white);
    border-radius: var(--rad);
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid var(--bdr);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

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

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

.rx-nav-zone {
    font-size: 10px;
    font-weight: 700;
    color: var(--rose);
    white-space: nowrap;
    width: 10%;
    text-align: center;
    border-right: 1px solid var(--bdr-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    flex-shrink: 0;
    background: var(--rose-pale);
    letter-spacing: 0.3px;
}

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

.rx-nav-links a {
    display: inline-block;
    color: var(--txt-body);
    text-decoration: none;
    padding: 4px 3px;
    border-radius: var(--rad-sm);
    transition: var(--trans);
    background: var(--bg-page);
    border: 1px solid var(--bdr);
    white-space: nowrap;
    text-align: center;
    font-size: 13px;
    width: calc((100% - 35px) / 8);
    flex-shrink: 0;
    flex-grow: 0;
}

.rx-nav-links a:hover {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

.rx-nav-links a.active {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
    font-weight: 700;
}

/* ========== SEARCH ========== */
.rx-search-area {
    background: var(--bg-white);
    border-radius: var(--rad);
    padding: 10px;
    margin-bottom: 6px;
    border: 1px solid var(--bdr);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

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

.rx-search-area input[type="text"] {
    flex: 1;
    min-width: 160px;
    padding: 9px 14px;
    border: 1.5px solid var(--bdr-rose);
    border-radius: var(--rad-pill);
    background: var(--bg-page);
    color: var(--txt-main);
    font-size: 14px;
    transition: var(--trans);
    outline: none;
}

.rx-search-area input[type="text"]:focus {
    border-color: var(--rose);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 84, 122, 0.12);
}

.rx-search-area input[type="text"]::placeholder {
    color: var(--txt-light);
}

.rx-search-area button {
    padding: 9px 18px;
    border: none;
    border-radius: var(--rad-pill);
    background: var(--rose);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.rx-search-area button:hover {
    background: var(--rose-dark);
    box-shadow: 0 3px 10px var(--shadow);
}

/* ========== HOT TAGS ========== */
.rx-tags-block {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 10px 12px;
    background: var(--bg-white);
    border-radius: var(--rad);
    margin-bottom: 6px;
    border: 1px solid var(--bdr);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

.rx-tag-link {
    padding: 5px 13px;
    background: var(--rose-pale);
    border-radius: var(--rad-pill);
    color: var(--rose);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
    border: 1px solid var(--bdr-rose);
}

.rx-tag-link:hover {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

/* ========== SECTION HEADINGS ========== */
.rx-module {
    margin-bottom: 10px;
}

.rx-mod-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bdr);
    position: relative;
}

.rx-mod-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--rose);
    border-radius: 1px;
}

.rx-mod-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: var(--txt-main);
}

.rx-mod-title a {
    color: var(--txt-main);
    text-decoration: none;
    transition: var(--trans);
}

.rx-mod-title a:hover {
    color: var(--rose);
}

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

.rx-grid li {
    animation: rx-fadein 0.42s ease backwards;
}

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

@keyframes rx-fadein {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rx-cover {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--rad-sm);
    aspect-ratio: 600 / 350;
    background: var(--rose-pale);
    border: 1px solid var(--bdr-rose);
    box-shadow: 0 2px 8px var(--shadow-sm);
}

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

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

.rx-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(232, 84, 122, 0.5) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.rx-cover::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--rose);
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 2;
}

.rx-cover:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rx-film-caption {
    padding: 7px 0 0;
}

.rx-film-caption h5 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--txt-body);
}

.rx-film-caption h5 a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans);
}

.rx-film-caption h5 a:hover {
    color: var(--rose);
}

/* ========== PAGE BODY ========== */
.rx-page {
    padding: 6px 0;
}

/* ========== DETAIL - TITLE BAR ========== */
.rx-entry-title {
    line-height: 1.8;
    text-align: center;
    padding: 14px 18px;
    font-size: 16px;
    margin: 8px 0;
    word-break: break-all;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--bdr-rose);
    border-left: 3px solid var(--rose);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

.rx-entry-title a {
    color: var(--rose);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
}

/* ========== DETAIL - INFO BOX ========== */
.rx-detail-box {
    font-size: 14px;
    line-height: 1.9;
    padding: 18px 20px;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--bdr);
    margin: 8px 0;
    color: var(--txt-body);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

.rx-capture-wrap {
    margin-top: 10px;
}

.rx-capture-wrap picture {
    display: block;
    width: 100%;
}

.rx-capture-wrap picture img,
.rx-capture-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--rad-sm);
    display: block;
}

/* ========== DOWNLOAD BUTTONS ========== */
.rx-dl-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 8px;
    margin: 8px 0;
    flex-wrap: nowrap;
}

.rx-btn {
    padding: 10px 24px;
    border-radius: var(--rad-pill);
    background: var(--rose);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--trans);
    border: 1px solid transparent;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 3px 10px var(--shadow);
}

.rx-btn:hover {
    background: var(--rose-dark);
    box-shadow: 0 5px 16px rgba(232, 84, 122, 0.35);
    transform: translateY(-1px);
}

/* ========== SHARE SECTION ========== */
.rx-share-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--bdr);
    margin: 8px 0;
    flex-wrap: nowrap;
    box-shadow: 0 1px 6px var(--shadow-sm);
}

.rx-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: var(--bg-page);
    border-radius: var(--rad-pill);
    padding: 7px 13px;
    border: 1px solid var(--bdr-rose);
    overflow: hidden;
}

.rx-url-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--rose);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.rx-copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: var(--rad-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--shadow);
}

.rx-copy-btn:hover {
    background: var(--rose-dark);
}

.rx-copy-icon {
    font-size: 14px;
}

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

.rx-pg {
    display: inline-block;
    padding: 7px 13px;
    border-radius: var(--rad-pill);
    font-size: 13px;
    transition: var(--trans);
    min-width: 36px;
    text-align: center;
    text-decoration: none;
}

.a_page_info {
    background: var(--bg-white);
    color: var(--txt-body);
    border: 1px solid var(--bdr);
}

.a_page_info:hover {
    background: var(--rose);
    border-color: var(--rose);
    color: #fff;
}

.page_info_focus {
    background: var(--rose);
    color: #fff;
    border: 1px solid var(--rose);
    font-weight: 700;
    cursor: default;
}

/* ========== FOOTER ========== */
.rx-footer {
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid var(--bdr-rose);
    margin-top: 16px;
    background: var(--bg-white);
}

.rx-footer p {
    margin: 5px 0;
    color: var(--txt-muted);
    font-size: 13px;
}

.rx-footer a {
    color: var(--txt-muted);
    text-decoration: none;
    transition: var(--trans);
}

.rx-footer a:hover {
    color: var(--rose);
}

/* ========== FRIENDLY LINKS ========== */
.rx-flinks {
    padding: 10px 14px;
    background: var(--bg-white);
    border-radius: var(--rad);
    border: 1px solid var(--bdr);
    box-shadow: 0 1px 6px var(--shadow-sm);
}

.rx-flinks dl {
    margin: 0;
}

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

.rx-flinks a {
    color: var(--teal);
    text-decoration: none;
    font-size: 13px;
    transition: var(--trans);
}

.rx-flinks a:hover {
    color: var(--rose);
}

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

    .rx-blk {
        padding: 4px 0;
    }

    .rx-site-name {
        font-size: 19px;
    }

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

    .rx-domain-label {
        font-size: 10px;
    }

    .rx-domain-text {
        font-size: 14px;
    }

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

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

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

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

    .rx-mod-title {
        font-size: 15px;
    }

    .rx-search-area input[type="text"] {
        min-width: 90px;
        font-size: 13px;
    }

    .rx-search-area button {
        padding: 9px 11px;
        font-size: 12px;
    }

    .rx-dl-row {
        padding: 12px 6px;
        gap: 8px;
    }

    .rx-btn {
        padding: 9px 14px;
        font-size: 13px;
    }

    .rx-entry-title {
        font-size: 14px;
        padding: 12px 12px;
    }

    .rx-detail-box {
        font-size: 13px;
        padding: 14px 14px;
    }

    .rx-share-strip {
        padding: 8px 10px;
        gap: 6px;
    }

    .rx-url-tag {
        font-size: 10px;
    }

    .rx-url-str {
        font-size: 10px;
    }

    .rx-copy-btn {
        padding: 7px 12px;
        font-size: 12px;
    }

    .rx-pg, .a_page_info, .page_info_focus {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 30px;
    }
}

@media (max-width: 480px) {
    .rx-brand-row {
        gap: 10px;
    }

    .rx-site-name {
        font-size: 17px;
    }

    .rx-domain-text {
        font-size: 13px;
    }

    .rx-domain-label {
        font-size: 9px;
    }

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

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

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

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

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

    .rx-mod-title {
        font-size: 14px;
    }

    .rx-search-area input[type="text"] {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .rx-search-area button {
        padding: 8px 9px;
        font-size: 11px;
    }

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

    .rx-dl-row {
        gap: 6px;
        padding: 10px 4px;
    }

    .rx-copy-btn {
        padding: 6px 9px;
        font-size: 11px;
    }

    .rx-copy-icon {
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .rx-nav-zone {
        font-size: 13px;
    }

    .rx-nav-links a {
        font-size: 13px;
    }

    .rx-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== UTILITIES ========== */
.hide-mob {
    display: block;
}

.hide-pc {
    display: block;
}

@media (max-width: 768px) {
    .hide-mob {
        display: none !important;
    }
}

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

.cf::after {
    content: "";
    display: table;
    clear: both;
}

img[data-original] {
    background: var(--rose-pale);
}
