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

:root {
    --bg-primary: #141414;
    --bg-secondary: #1a1a1a;
    --bg-card: #2f2f2f;
    --bg-hover: #3a3a3a;
    --bg-elevated: #181818;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #808080;
    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-blue: #0071eb;
    --border: #404040;
    --header-h: 68px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.5);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ===== Header / Navigation - Netflix Style ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    transition: var(--transition-base);
    padding: 0;
}

.site-header-transparent {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, transparent);
}

.site-header-solid {
    background: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
    max-width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    flex-shrink: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-style: italic;
    text-shadow: 0 0 20px rgba(229,9,20,0.3);
}

.header-nav {
    display: none;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-weight: 500;
}

.header-nav-link:hover {
    color: var(--text-primary);
}

.header-nav-link.active {
    color: var(--text-primary);
    font-weight: 700;
}

.header-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-base);
}

.header-search:focus-within {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255,255,255,0.5);
}

.header-search-input {
    flex: 1;
    min-width: 0;
    width: 180px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-search-btn:hover {
    color: var(--text-primary);
}

/* ===== Main Content ===== */
.site-main {
    flex: 1;
    padding-top: var(--header-h);
}

/* ===== Hero Banner - Netflix Style ===== */
.hero-section {
    position: relative;
    height: 75vh;
    min-height: 480px;
    max-height: 700px;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    margin-bottom: -60px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    transform: scale(1.05);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(20,20,20,0.6) 0%,
            rgba(20,20,20,0.3) 40%,
            rgba(20,20,20,0.15) 60%,
            rgba(20,20,20,0.5) 85%,
            rgba(20,20,20,0.95) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(20,20,20,0.2) 0%,
            rgba(20,20,20,0.05) 30%,
            rgba(20,20,20,0.3) 60%,
            var(--bg-primary) 100%
        );
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 4%;
    right: 4%;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.hero-btn-primary {
    background: var(--text-primary);
    color: #000;
}

.hero-btn-primary:hover {
    background: rgba(255,255,255,0.75);
}

.hero-btn-secondary {
    background: rgba(109,109,110,0.7);
    color: var(--text-primary);
}

.hero-btn-secondary:hover {
    background: rgba(109,109,110,0.4);
}

/* ===== Filters ===== */
.filters {
    position: relative;
    z-index: 10;
    margin-bottom: 32px;
    padding: 16px 0;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filter-field-platform {
    min-width: 180px;
}

.filter-field-search {
    flex: 1;
    min-width: 200px;
}

.filter-field-action {
    min-width: 100px;
}

.filter-control {
    width: 100%;
    min-height: 40px;
}

.filter-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.platform-picker {
    position: relative;
    width: 100%;
}

.platform-picker-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    text-align: left;
    min-height: 40px;
    transition: var(--transition-fast);
}

.platform-picker-trigger:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.platform-picker-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.platform-picker-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    font-size: 1rem;
}

.platform-picker-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-picker-caret {
    width: 0;
    height: 0;
    margin-left: auto;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.platform-picker-trigger[aria-expanded="true"] .platform-picker-caret {
    transform: rotate(180deg);
}

.platform-picker-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 120;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-hover);
}

.platform-picker-menu[hidden] {
    display: none !important;
}

.platform-picker-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.platform-picker-option span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-picker-option:hover {
    background: var(--bg-card);
}

.platform-picker-option.active {
    background: var(--bg-card);
    color: var(--accent);
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-height: 40px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--text-muted);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-height: 40px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-search {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 40px;
    transition: var(--transition-fast);
}

.btn-search:hover {
    background: var(--accent-hover);
}

/* ===== Content Section - Netflix Row Style ===== */
.list-section {
    margin-bottom: 60px;
}

.list-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Netflix-style horizontal scrolling card row */
.card-row {
    position: relative;
    margin: 0 -4%;
    padding: 20px 4%;
    overflow: visible;
}

.card-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.card {
    flex: 0 0 auto;
    width: 200px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: visible;
    position: relative;
    transition: var(--transition-base);
    cursor: pointer;
}

.card:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: var(--shadow-hover);
}

.card-cover-wrap {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-cover {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-play {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #000;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.card:hover .card-play {
    transform: scale(1);
}

.corner-mark {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    z-index: 2;
}

.corner-mark.hot {
    background: var(--accent);
}

.corner-mark.new {
    background: var(--accent-blue);
}

.card-body {
    padding: 12px 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    padding-top: 40px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.card:hover .card-body {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-platform-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.page-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Empty & Error States ===== */
.empty-state,
.error-page {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.error-page h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.btn-back {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-back:hover {
    background: var(--accent-hover);
}

/* ===== Detail Page - Netflix Style ===== */
.detail-main {
    padding-top: 0;
}

.detail-hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-h);
    display: flex;
    align-items: center;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.02);
    filter: brightness(0.7);
}

.detail-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(20,20,20,0.98) 0%,
            rgba(20,20,20,0.9) 30%,
            rgba(20,20,20,0.7) 55%,
            rgba(20,20,20,0.55) 75%,
            rgba(20,20,20,0.5) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(20,20,20,0.3) 0%,
            rgba(20,20,20,0.1) 40%,
            rgba(20,20,20,0.4) 70%,
            var(--bg-primary) 100%
        );
    z-index: 1;
}

.detail-page, .book-page {
    position: relative;
    z-index: 2;
    width: 100%;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
    padding-top: 40px;
}

.book-layout {
    display: grid;
    gap: 24px;
    padding-top: 40px;
}

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

.detail-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.book-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.player-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.player-loading.hidden {
    display: none;
}

.player-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.detail-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.book-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.book-author {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1rem;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.tag-badge {
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-complete {
    background: #46d369;
}

.tag-ongoing {
    background: var(--accent-blue);
}

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

.tag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.15);
}

.detail-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Episodes Section */
.episodes-section {
    background: var(--bg-primary);
    padding: 40px 0;
}

.episodes-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.episode-btn {
    padding: 14px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
    font-weight: 500;
}

.episode-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.episode-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

/* Book Cover */
.book-cover-wrap {
    max-width: 240px;
    width: 100%;
}

.book-cover {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* Book Chapters */
.book-chapters {
    margin-top: 24px;
}

.chapter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 24px;
}

.chapter-btn {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    min-width: 80px;
}

.chapter-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.chapter-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.chapter-reader {
    margin-top: 16px;
}

.chapter-content {
    display: none;
    padding: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.chapter-content.active {
    display: block;
}

.chapter-content-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.chapter-content-body {
    white-space: pre-wrap;
    line-height: 2;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===== Promotion Guide ===== */
.promotion-guide {
    padding: 20px;
    background: linear-gradient(135deg, rgba(229,9,20,0.1), rgba(0,113,235,0.05));
    border: 1px solid rgba(229,9,20,0.3);
    border-radius: var(--radius-md);
}

.promotion-skeleton {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.promotion-placeholder {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.promotion-guide-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.promotion-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.promotion-guide-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.promotion-guide-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.promotion-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.promo-btn-primary {
    background: var(--accent);
    color: #fff;
}

.promo-btn-primary:hover {
    background: var(--accent-hover);
}

.promo-btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.promo-btn-secondary:hover {
    background: var(--bg-hover);
}

.promo-btn-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.promo-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-btn-text strong {
    font-size: 0.95rem;
}

.promo-btn-text small {
    font-size: 0.75rem;
    opacity: 0.85;
}

.promo-code-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.promo-code-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.promo-code-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.promo-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    background: rgba(229,9,20,0.1);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-code-btn:hover {
    background: rgba(229,9,20,0.2);
}

.promo-code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.promo-code-value {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent);
}

.promo-code-action {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Share Section ===== */
.share-section {
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.share-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.share-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
}

.share-btn-facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn-facebook .share-btn-icon {
    background: rgba(255,255,255,0.2);
    font-family: Georgia, serif;
}

.share-btn-tiktok {
    background: #010101;
    color: #fff;
    border: 1px solid var(--border);
}

.share-feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #46d369;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Responsive - Netflix Breakpoints ===== */
@media (min-width: 600px) {
    .card {
        width: 220px;
    }
}

@media (min-width: 768px) {
    .header-nav {
        display: flex;
    }

    .header-search-input {
        width: 240px;
    }

    .card {
        width: 240px;
    }

    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 767px) {
    .filter-bar {
        flex-direction: column;
    }

    .filter-field,
    .filter-field-platform,
    .filter-field-search,
    .filter-field-action {
        width: 100%;
        min-width: 0;
    }

    .hero-section {
        height: 60vh;
        min-height: 380px;
        margin-bottom: -40px;
    }

    .hero-backdrop {
        background-position: center top;
        transform: scale(1);
    }

    .hero-gradient {
        background:
            linear-gradient(
                to bottom,
                rgba(20,20,20,0.3) 0%,
                rgba(20,20,20,0.1) 30%,
                rgba(20,20,20,0.4) 60%,
                var(--bg-primary) 100%
            );
    }

    .hero-content {
        bottom: 15%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card {
        width: 160px;
    }

    .detail-layout {
        gap: 16px;
    }

    .player-wrap {
        max-width: 100%;
        margin: 0 auto;
    }

    .detail-hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .detail-backdrop {
        background-position: center top;
        filter: brightness(0.5);
    }

    .detail-hero-gradient {
        background:
            linear-gradient(
                to bottom,
                rgba(20,20,20,0.4) 0%,
                rgba(20,20,20,0.2) 30%,
                rgba(20,20,20,0.5) 60%,
                var(--bg-primary) 100%
            );
    }
}

@media (min-width: 900px) {
    .detail-layout {
        grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
        gap: 40px;
    }

    .book-layout {
        grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
        gap: 40px;
    }

    .book-left {
        position: sticky;
        top: calc(var(--header-h) + 20px);
        align-self: start;
    }

    .player-wrap {
        max-width: none;
    }

    .detail-right {
        padding-top: 60px;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        height: 80vh;
        max-height: 750px;
    }

    .hero-content {
        max-width: 680px;
        bottom: 22%;
    }
}

@media (min-width: 1024px) {
    .card {
        width: 260px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 1400px) {
    .card {
        width: 280px;
    }
}
