:root {
    --orange: #f97316;
    --orange-soft: rgba(249, 115, 22, .2);
    --orange-line: rgba(249, 115, 22, .5);
    --bg: #020617;
    --panel: rgba(15, 23, 42, .9);
    --card: rgba(15, 23, 42, .8);
    --line: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 15%, rgba(249, 115, 22, .14) 0, transparent 38%),
        radial-gradient(circle at 90% 18%, rgba(251, 146, 60, .08) 0, transparent 40%),
        radial-gradient(circle at 50% 95%, rgba(234, 88, 12, .12) 0, transparent 45%),
        var(--bg);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
    letter-spacing: 0;
}

.app-shell {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    padding-top: 104px;
    overflow-x: hidden;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, .95);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(680px, 100%);
    max-width: 100vw;
    height: 56px;
    margin: 0 auto;
    padding: 0 12px;
    overflow: hidden;
}

.brand {
    flex: 0 0 auto;
    max-width: 84px;
    overflow: hidden;
    color: #fb923c;
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #0f172a;
    color: var(--text);
}

.search-icon {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
}

.site-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 14px;
}

.site-search input::placeholder {
    color: #64748b;
}

.site-search button,
.business-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.business-link {
    border: 1px solid var(--orange-line);
    background: transparent;
    color: #fb923c;
}

.business-link b {
    display: none;
    font: inherit;
}

.friend-nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.friend-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: rgba(15, 23, 42, .92);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.friend-nav-link--green {
    border-color: rgba(34, 197, 94, .46);
    color: #86efac;
    background: rgba(22, 101, 52, .26);
}

.friend-nav-link--blue {
    border-color: rgba(59, 130, 246, .5);
    color: #93c5fd;
    background: rgba(29, 78, 216, .24);
}

.friend-nav-link b {
    display: none;
    font: inherit;
}

.category-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, .95);
    backdrop-filter: blur(6px);
}

.category-inner {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 8px 16px 7px;
    overflow: hidden;
}

.category-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: inline-flex;
    min-width: max-content;
    gap: 8px;
}

.u-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.u-chip--active,
.u-chip:hover {
    border-color: var(--orange-line);
    background: var(--orange-soft);
    color: #fdba74;
}

.scroll-track {
    height: 2px;
    margin-top: 7px;
    border-radius: 999px;
    background: #1e293b;
    overflow: hidden;
}

.scroll-track span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: rgba(249, 115, 22, .7);
}

.layout-frame {
    position: relative;
    width: min(680px, 100%);
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
}

.main-content {
    width: 100%;
    max-width: 100%;
    padding: 16px 16px 4px;
    overflow: hidden;
}

.showcase-standard {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.showcase-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.showcase-icon-grid:empty,
.showcase-banner-stack:empty,
.showcase-text-list:empty,
.showcase-cover-anchor:empty {
    display: none;
}

.showcase-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 10px;
}

.showcase-icon-card img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.showcase-icon-card div {
    width: 100%;
    overflow-wrap: break-word;
    color: #e2e8f0;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.showcase-banner-stack {
    display: grid;
    gap: 12px;
}

.showcase-banner-card {
    display: block;
    overflow: hidden;
}

.showcase-banner-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.showcase-text-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-cover-anchor {
    display: contents;
}

.movie-card--promo .play-mask {
    display: none;
}

.showcase-ribbon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 8px;
    border: 1px solid rgba(249, 115, 22, .55);
    border-radius: 999px;
    background: rgba(249, 115, 22, .86);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.showcase-side {
    position: fixed;
    top: 50%;
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
}

.showcase-side--left {
    left: calc(50% - 325px);
}

.showcase-side--right {
    right: calc(50% - 325px);
}

.showcase-side--mobile {
    display: none;
}

.showcase-float-item {
    position: relative;
}

.showcase-float-item a {
    display: block;
    width: 56px;
    height: 56px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .4);
}

.showcase-side--mobile .showcase-float-item a {
    width: 48px;
    height: 48px;
}

.showcase-float-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-float-item button,
.bottom-float button,
.feature-popup button {
    position: absolute;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    line-height: 1;
}

.showcase-float-item button {
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    opacity: 0;
}

.showcase-float-item:hover button {
    opacity: 1;
}

.bottom-float {
    position: fixed;
    left: 50%;
    bottom: 8px;
    z-index: 55;
    width: min(520px, calc(100vw - 16px));
    transform: translateX(-50%);
}

.bottom-float:empty {
    display: none;
}

.bottom-float-inner {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 14px 34px -22px rgba(0, 0, 0, .55);
}

.bottom-float img {
    width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.bottom-float button {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 18px;
}

.feature-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
}

.feature-popup-card {
    position: relative;
    width: min(360px, 92vw);
}

.feature-popup-card a {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 20px 50px -28px rgba(0, 0, 0, .65);
}

.feature-popup-card img {
    width: 100%;
    height: auto;
}

.feature-popup button {
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    font-size: 22px;
}

.video-section {
    margin-bottom: 20px;
}

.video-section + .video-section {
    margin-top: 12px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.section-title i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fb923c;
}

.section-title h2,
.detail-page h1,
.player-page h1 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.more-link:hover {
    color: var(--text);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.movie-card {
    min-width: 0;
}

.movie-link {
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .45);
    transition: box-shadow .15s ease;
}

.detail-hero,
.play-lines,
.player-card,
.play-notice,
.info-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .45);
}

.movie-link:hover {
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
}

.thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #0f172a url("../../loading.svg") center / 60px auto no-repeat;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.movie-link:hover .thumb-wrap img {
    transform: scale(1.05);
}

.thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1), transparent);
    opacity: .7;
    transition: opacity .2s ease;
}

.movie-link:hover .thumb-wrap::after {
    opacity: .9;
}

.play-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .2s ease;
}

.movie-link:hover .play-mask {
    opacity: 1;
}

.play-mask b {
    width: 48px;
    height: 48px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 35px -20px rgba(0, 0, 0, .6);
}

.play-mask b::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 14px 0 0 18px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--orange);
}

.duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 2px 8px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
}

.card-body {
    min-height: 78px;
    padding: 12px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 20px;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.card-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta em {
    flex: 0 0 auto;
    max-width: 72px;
    overflow: hidden;
    padding: 2px 8px;
    border: 1px solid rgba(249, 115, 22, .4);
    border-radius: 999px;
    background: var(--orange-soft);
    color: #fdba74;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-summary {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.search-summary span {
    background-image: linear-gradient(to right, #fb923c, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.search-summary b {
    color: #cbd5e1;
    font-weight: 600;
}

.pager {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 28px;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.pager span {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
    box-shadow: 0 12px 26px -18px rgba(249, 115, 22, .55);
}

.pager a:hover {
    background: #1e293b;
}

.pager-arrow {
    border-radius: 999px !important;
}

.detail-page,
.player-page {
    margin-bottom: 18px;
}

.detail-page h1,
.player-page h1 {
    margin-bottom: 12px;
    font-size: 18px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a url("../../loading.svg") center / 54px auto no-repeat;
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-main {
    min-width: 0;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-main p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.75;
}

.play-lines {
    margin: 16px 0 24px;
    padding: 16px;
}

.line-title {
    margin: 12px 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
}

.episode-list a.current,
.episode-list a:hover {
    border-color: var(--orange-line);
    background: var(--orange-soft);
    color: #fdba74;
}

.player-card {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.MacPlayer,
.MacPlayer iframe,
.MacPlayer video {
    width: 100%;
    height: 100%;
}

.MacPlayer {
    position: absolute;
    inset: 0;
}

.play-notice {
    margin-top: 12px;
    padding: 12px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.showcase-standard--top {
    margin-bottom: 16px;
}

.showcase-standard--after-player {
    margin-top: 12px;
    margin-bottom: 0;
}

.section-title--plain i {
    display: none;
}

.info-panel {
    margin-top: 18px;
    padding: 20px;
}

.info-content {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.625;
}

.app-footer {
    margin-top: 8px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, .9);
}

.footer-inner {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 28px 16px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
}

.footer-inner p {
    margin: 0;
}

.footer-inner p + p {
    margin-top: 8px;
}

.contact-email {
    color: #fb923c;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.app-footer-business {
    color: #fb923c;
    font-weight: 900;
}

.back-top {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 60;
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, .9);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 26px -18px rgba(249, 115, 22, .55);
}

.back-top.show {
    display: grid;
    place-items: center;
}

@media (max-width: 520px) {
    .app-shell {
        padding-top: 104px;
    }

    .category-bar {
        top: 56px;
    }

    .header-inner {
        flex-wrap: nowrap;
        height: 56px;
        gap: 8px;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    .brand {
        max-width: 72px;
        font-size: 14px;
    }

    .site-search {
        flex: 1 1 auto;
        padding: 0 6px;
    }

    .site-search button {
        padding: 0 8px;
        font-size: 12px;
    }

    .business-link {
        padding: 0 8px;
        font-size: 12px;
    }

    .friend-nav {
        order: 4;
        display: grid;
        flex: 0 0 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .friend-nav-link {
        width: 100%;
        height: 30px;
        padding: 0 7px;
        font-size: 12px;
    }

    .business-link span {
        display: none;
    }

    .business-link b {
        display: inline;
    }

    .main-content {
        padding-right: 16px;
        padding-left: 16px;
        padding-bottom: 24px;
    }

    .showcase-icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .showcase-icon-card {
        padding-right: 6px;
        padding-left: 6px;
    }

    .detail-hero {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .detail-main p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
    }

    .card-body {
        min-height: 74px;
        padding: 10px;
    }

    .app-footer {
        margin-top: 12px;
    }

    .footer-inner {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (min-width: 640px) {
    .showcase-icon-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .showcase-icon-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .showcase-side--desktop {
        display: none;
    }

    .showcase-side--mobile {
        display: flex;
    }

    .showcase-side--left-mobile {
        left: 8px;
    }

    .showcase-side--right-mobile {
        right: 8px;
    }

    .showcase-side--mobile .showcase-float-item button {
        width: 24px;
        height: 24px;
        opacity: 1;
        font-size: 16px;
    }
}
