/* DiziPAL Router - Loading Bar */
#router-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

#router-loader.active {
    opacity: 1;
}

#router-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), var(--accent-primary), transparent);
    animation: routerProgress 1s ease-in-out infinite;
}

@keyframes routerProgress {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* Main content transition for router */
.main-content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-section {
    background: var(--bg-secondary);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border-color);
}

.comments-header h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.comments-header h3 i {
    margin-right: 8px;
    color: var(--accent-primary);
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input-wrapper textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.comment-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.spoiler-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}

.spoiler-checkbox input {
    accent-color: var(--accent-primary);
}

.spoiler-checkbox i {
    color: var(--warning);
}

/* Comment Login Prompt */
.comment-login-prompt {
    text-align: center;
    padding: 30px;
    background: var(--bg-tertiary);
    margin-bottom: 20px;
}

.comment-login-prompt i {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
}

.comment-login-prompt a {
    color: var(--accent-primary);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-comments i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

/* Comment Item */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-date {
    color: var(--text-muted);
    font-size: 12px;
}

.spoiler-badge {
    background: var(--warning);
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    font-weight: 600;
}

.spoiler-badge i {
    margin-right: 4px;
}

/* Comment Text */
.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-text p {
    margin: 0;
}

/* Spoiler Hidden */
.comment-text.spoiler-hidden {
    position: relative;
    cursor: pointer;
}

.comment-text.spoiler-hidden p {
    filter: blur(8px);
    user-select: none;
    transition: filter 0.3s ease;
}

.comment-text.spoiler-hidden .spoiler-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--warning);
    font-size: 13px;
    z-index: 1;
}

.comment-text.spoiler-hidden .spoiler-overlay i {
    font-size: 20px;
}

.comment-text.spoiler-revealed p {
    filter: none;
}

.comment-text.spoiler-revealed .spoiler-overlay {
    display: none;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.comment-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    padding: 5px;
    transition: color 0.2s ease;
}

.comment-action:hover {
    color: var(--text-primary);
}

.comment-action.like-btn:hover,
.comment-action.like-btn.active {
    color: var(--success);
}

.comment-action.dislike-btn:hover,
.comment-action.dislike-btn.active {
    color: var(--danger);
}

@media (max-width: 768px) {
    .comment-form {
        flex-direction: column;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-form-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* DiziPAL - Sharp Design */

:root {
    /* Colors - Black & Red Theme */
    --bg-body: #000000;
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #161616;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --bg-box: #080808;
    
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    
    --accent-primary: #e50914;
    --accent-secondary: #ff0a16;
    --accent-gradient: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    
    --success: #46d369;
    --warning: #f5c518;
    --danger: #e50914;
    --info: #0080ff;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.6);
    
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-full: 2px;
    
    --transition: all 0.2s ease;
    
    --box-width: 1200px;
}

/* Custom Scrollbar - Red on Black */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #e50914;
    border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff1a1a;
}

::-webkit-scrollbar-corner {
    background: #000000;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #e50914 #000000;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Box Layout Wrapper */
.site-wrapper {
    max-width: var(--box-width);
    margin: 0 auto;
    background: var(--bg-box);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

/* Announcement Bar (Header içinde) */
.announcement-bar {
    background: var(--accent-primary);
    padding: 10px 0;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.announcement-bar .ann-text {
    font-size: 14px;
    font-weight: 600;
}

.announcement-bar .ann-link {
    background: white;
    color: var(--bg-primary);
    padding: 6px 16px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.announcement-bar .ann-link:hover {
    background: #ddd;
}

/* Header */
.main-header {
    background: var(--bg-secondary);
    z-index: 100;
    position: relative;
}

.main-header .header-inner {
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.hero-logo-img {
    height: 60px;
    max-width: 300px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 26px;
    height: 26px;
    background: var(--accent-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Navigation */
.main-nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    list-style: none;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 0;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
    color: var(--text-secondary);
}

.nav-menu > li > a:hover {
    background: var(--bg-hover);
    color: white;
}

.nav-menu > li > a i {
    font-size: 12px;
}

.nav-menu > li > a .fa-chevron-down {
    font-size: 8px;
    margin-left: 2px;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 4px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    list-style: none;
    z-index: 50;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
}

.dropdown-menu li a {
    display: block;
    padding: 6px 10px;
    border-radius: 0;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-hover);
    color: white;
}

.dropdown-mega {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 300px;
    gap: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    display: block;
}

.search-form {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.search-input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: var(--text-primary);
    width: 200px;
    font-size: 13px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--bg-hover);
    border: none;
    padding: 8px 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-dropdown.active {
    display: block;
}

.search-results {
    padding: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--bg-hover);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-poster {
    width: 40px;
    height: 60px;
    background: var(--bg-tertiary);
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-poster .no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.search-result-type {
    padding: 2px 6px;
    background: var(--accent-primary);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-all-results {
    display: block;
    padding: 12px;
    text-align: center;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}

.search-all-results:hover {
    background: var(--bg-hover);
}

.search-btn:hover {
    background: var(--accent-primary);
    color: white;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown {
    position: relative;
    z-index: 1000;
}

.user-avatar {
    width: 34px;
    height: 34px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
}

.user-avatar:hover {
    background: var(--bg-hover);
}

.user-avatar.guest {
    color: var(--text-muted);
    font-size: 13px;
}

.user-avatar.guest:hover {
    color: var(--accent-primary);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    z-index: 9999;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.user-dropdown-menu a:hover {
    background: var(--bg-hover);
    color: white;
}

.user-dropdown-menu a.logout {
    color: var(--accent-primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    padding: 6px;
}

.mobile-menu {
    display: none;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 25px 0;
    background: var(--bg-primary);
}

/* Hero Search */
.hero-search {
    text-align: center;
    padding: 25px 0;
    margin-bottom: 10px;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo .logo {
    justify-content: center;
}

.hero-logo .logo-text {
    font-size: 42px;
    letter-spacing: -1px;
}

.hero-logo .logo-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
    border-radius: 6px;
}

.hero-search-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.hero-search-form {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    outline: none;
}

.hero-search-form input::placeholder {
    color: var(--text-muted);
}

.hero-search-form button {
    background: var(--bg-hover);
    border: none;
    padding: 12px 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.hero-search-form button:hover {
    background: var(--accent-primary);
    color: white;
}

.hero-dropdown {
    text-align: left;
}

.hero-dropdown .search-result-poster {
    width: 50px;
    height: 75px;
}

/* Content Section */
.content-section {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.see-all {
    color: var(--accent-primary);
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.see-all:hover {
    color: var(--accent-secondary);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.content-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Content Card */
.content-card {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.card-link {
    display: block;
    position: relative;
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    background: var(--bg-tertiary);
    overflow: hidden;
    border-radius: 2px;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 35px;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.card-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    z-index: 2;
}

.card-badge {
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-badge.type {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-badge.new {
    background: #000;
    color: #fff;
}

.card-badge.quality {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.card-play {
    display: none;
}

/* Card Info - Poster üzerinde */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 10px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    z-index: 2;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    color: white;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.card-rating {
    color: var(--warning);
    font-weight: 600;
}

.card-rating i {
    margin-right: 2px;
}

.card-year {
    color: var(--text-muted);
}

.card-episodes {
    background: rgba(255,255,255,0.15);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 10px;
}

/* Episodes Section - Grid of small boxes */
.episodes-section {
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.episode-card {
    background: var(--bg-tertiary);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.episode-card:hover {
    background: var(--bg-hover);
}

.episode-link {
    display: block;
    padding: 10px;
}

.episode-poster {
    width: 45px;
    height: 45px;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    margin-bottom: 8px;
}

.episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-poster .poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.episode-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
}

.episode-card:hover .episode-play {
    opacity: 1;
}

.episode-info {
    min-width: 0;
}

.episode-series {
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.episode-number {
    color: var(--text-muted);
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
}

.episode-time {
    color: var(--accent-primary);
    font-size: 9px;
    font-weight: 500;
}

.latest-episodes-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.see-all-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.see-all-btn:hover {
    background: var(--bg-hover);
}

.episodes-box {
    background: #111;
    border-radius: 10px;
    position: relative;
    padding: 15px;
    padding-top: 50px;
}

.episodes-tab {
    position: absolute;
    top: 0;
    left: 0;
    background: #0d0d0d;
    color: #fff;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px 0 10px 0;
}

.episodes-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.episode-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.episode-list-item:hover {
    background: #252525;
}

.episode-thumb {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #0d0d0d;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.episode-thumb .thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 20px;
}

.episode-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.episode-meta .ep-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-meta .ep-info {
    font-size: 13px;
    color: #999;
}

.episode-meta .ep-time {
    font-size: 12px;
    color: #666;
}

@media (max-width: 1200px) {
    .episodes-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .episodes-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .episodes-list-grid {
        grid-template-columns: 1fr;
    }
    .episode-thumb {
        width: 80px;
        height: 60px;
    }
    .episode-meta .ep-title {
        font-size: 14px;
    }
}

/* Page Header */
.page-header {
    margin-bottom: 25px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.filters-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 35px 10px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:hover,
.filter-select:focus {
    background: var(--bg-hover);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

.filter-clear {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-clear:hover {
    background: #ff1a1a;
}

.results-count {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Page dots */
.page-dots {
    padding: 8px 4px;
    color: var(--text-muted);
}

/* Infinite Scroll Loader */
.infinite-loader {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

.infinite-loader.active {
    display: flex;
}

.loader-spinner {
    font-size: 20px;
    color: var(--accent-primary);
}

.load-more-end {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

/* LazyLoad Placeholder */
.lazyload,
.lazyloading {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyloaded {
    opacity: 1;
}

.card-poster .lazyload,
.card-poster .lazyloading,
.episode-poster .lazyload,
.episode-poster .lazyloading {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Content Loading Skeleton */
.content-card .lazyload,
.content-card .lazyloading {
    min-height: 280px;
}

/* ============================================
   NETFLIX-STYLE TRENDING SECTION
   ============================================ */
.trending-section {
    margin-bottom: 30px;
    position: relative;
}

.trending-wrapper {
    position: relative;
}

.trending-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.trending-slider::-webkit-scrollbar {
    display: none;
}

.trending-loading, .trending-empty {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.trending-loading i {
    margin-right: 8px;
    color: var(--accent-primary);
}

.trending-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
}

.trending-nav:hover {
    background: var(--accent-primary);
}

.trending-nav.prev {
    left: 0;
}

.trending-nav.next {
    right: 0;
}

.trending-item {
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    scroll-snap-align: start;
    position: relative;
    width: 180px;
    margin-right: -30px;
}

.trending-rank {
    position: relative;
    width: 80px;
    height: 160px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
}

.rank-number {
    font-family: 'Inter', sans-serif;
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    color: #333;
    opacity: 0.4;
    -webkit-text-stroke: 3px #555;
    margin-right: -25px;
    position: relative;
    z-index: 1;
}

.rank-number.stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 70px;
    line-height: 0.85;
    margin-right: -15px;
}

.trending-poster {
    width: 110px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.trending-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-info {
    display: none;
}

.trending-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.trending-title {
    font-size: 12px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Top 10 Grid Page */
.trending-top10 {
    margin-bottom: 40px;
}

.top10-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top10-title::before {
    content: "TOP";
    background: var(--accent-primary);
    color: white;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 800;
}

.top10-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top10-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.top10-item:hover {
    background: var(--bg-hover);
}

.top10-rank {
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top10-rank span {
    font-size: 48px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px var(--accent-primary);
    text-shadow: 
        3px 3px 0 var(--bg-primary),
        -1px -1px 0 var(--bg-primary),
        1px -1px 0 var(--bg-primary),
        -1px 1px 0 var(--bg-primary);
}

.top10-poster {
    width: 70px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.top10-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top10-info {
    flex: 1;
    min-width: 0;
}

.top10-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.top10-badge.movie {
    background: var(--accent-primary);
    color: white;
}

.top10-badge.series {
    background: #3498db;
    color: white;
}

.top10-title-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top10-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.top10-rating {
    color: #f1c40f;
}

.top10-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.top10-stats i {
    margin-right: 4px;
}

.top10-stats span:first-child i {
    color: var(--accent-primary);
}

.top10-stats span:last-child i {
    color: #e74c3c;
}

.top10-views i {
    color: var(--accent-primary);
}

/* Fire Badge */
.card-badge.fire {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    animation: firePulse 1.5s infinite;
}

@keyframes firePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 107, 53, 0.8); }
}

/* Responsive */
@media (max-width: 768px) {
    .trending-item {
        width: 150px;
    }
    
    .trending-rank {
        width: 60px;
    }
    
    .rank-number {
        font-size: 100px;
        -webkit-text-stroke: 3px var(--accent-primary);
    }
    
    .trending-poster {
        width: 90px;
        height: 130px;
    }
    
    .top10-rank span {
        font-size: 36px;
    }
    
    .top10-poster {
        width: 60px;
        height: 85px;
    }
    
    .top10-title-text {
        font-size: 14px;
    }
    
    .top10-meta {
        font-size: 12px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .trending-item {
        width: 130px;
    }
    
    .trending-rank {
        width: 50px;
    }
    
    .rank-number {
        font-size: 80px;
    }
    
    .trending-poster {
        width: 80px;
        height: 115px;
    }
    
    .top10-item {
        padding: 10px;
        gap: 10px;
    }
    
    .top10-rank {
        width: 40px;
    }
    
    .top10-rank span {
        font-size: 28px;
        -webkit-text-stroke: 2px var(--accent-primary);
    }
}

/* ============================================
   ADVERTISEMENT STYLES
   ============================================ */
.ad-container {
    text-align: center;
    margin: 15px 0;
}

.ad-container a {
    display: inline-block;
}

.ad-image {
    max-width: 100%;
    height: auto;
}

/* Ad Container */
.ad-container {
    width: 100%;
    margin: 15px auto;
    text-align: center;
}

/* Desktop/Mobile visibility */
.ad-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-mobile {
    display: none;
}

/* Header reklam ortalama */
.ad-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-header .ad-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-header .ad-mobile {
    display: none;
    justify-content: center;
    align-items: center;
}

/* Çoklu reklam grid - masaüstü 2'li */
.ad-grid {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.ad-grid .ad-item {
    flex: 0 1 auto;
    max-width: 440px;
}

.ad-grid .ad-item img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 6px;
}

/* Tek reklam varsa */
.ad-grid .ad-item:only-child {
    max-width: 728px;
}

.ad-grid .ad-item:only-child img {
    max-height: 90px;
}

/* Mobil grid - tek sütun */
.ad-grid-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.ad-grid-mobile .ad-item {
    max-width: 320px;
}

.ad-grid-mobile .ad-item img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    border-radius: 4px;
}

/* Footer reklam satırı */
.footer-ad-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.footer-ad-item {
    flex-shrink: 0;
}

.footer-ad-item img {
    max-height: 90px;
    width: auto;
    border-radius: 4px;
}

/* ========== PAGE SKIN REKLAMLAR ========== */

/* Desktop Pageskin - Background */
.pageskin-desktop-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    cursor: pointer;
}

.pageskin-desktop-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

/* Body adjustment for desktop to show pageskin behind */
body.has-pageskin-desktop {
    background: transparent !important;
}

body.has-pageskin-desktop .site-wrapper {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

/* Clickable areas on desktop sides */
.pageskin-click-left,
.pageskin-click-right {
    position: fixed;
    top: 0;
    width: calc((100% - 1200px) / 2);
    height: 100%;
    z-index: 9998;
    cursor: pointer;
}

.pageskin-click-left {
    left: 0;
}

.pageskin-click-right {
    right: 0;
}

@media (max-width: 1200px) {
    .pageskin-click-left,
    .pageskin-click-right {
        display: none;
    }
    .pageskin-desktop-wrapper {
        display: none;
    }
}

/* Mobile Pageskin - Top Banner */
.pageskin-mobile-wrapper {
    display: none;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.pageskin-mobile-wrapper img {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ad-desktop,
    .ad-header .ad-desktop {
        display: none !important;
    }
    
    .ad-mobile,
    .ad-header .ad-mobile {
        display: flex !important;
        justify-content: center;
        width: 100%;
    }
    
    .ad-container {
        margin: 10px auto;
    }
    
    .footer-ad-item img {
        max-height: 60px;
    }
    
    .pageskin-desktop-wrapper,
    .pageskin-click-left,
    .pageskin-click-right {
        display: none !important;
    }
    
    .pageskin-mobile-wrapper {
        display: block;
    }
}

/* Header Ad */
.ad-header {
    margin: 0;
    padding: 10px 0;
    background: transparent;
}

/* Search Bottom Ad */
.ad-search {
    margin: 20px auto;
    max-width: 728px;
}

/* Video Ads */
.ad-video_top,
.ad-video_bottom {
    margin: 15px 0;
}

/* Footer Sticky Ad */
.footer-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    text-align: center;
    padding: 8px 0;
}

.footer-sticky-ad .footer-ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-sticky-ad .ad-item {
    flex-shrink: 0;
}

.footer-sticky-ad img {
    max-height: 90px;
    width: auto;
    border-radius: 4px;
}

/* Has footer ad - add padding to body */
body.has-footer-ad {
    padding-bottom: 110px;
}

@media (max-width: 768px) {
    body.has-footer-ad {
        padding-bottom: 140px;
    }
    
    .footer-sticky-ad {
        bottom: 60px; /* Above mobile nav */
        padding: 5px 0;
    }
    
    .footer-sticky-ad img {
        max-height: 60px;
    }
    
    .footer-sticky-ad .footer-ad-content {
        gap: 8px;
    }
}

/* Video Player Container */
.video-wrapper {
    margin-bottom: 20px;
}

/* Player Cover */
.player-cover-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.player-cover-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.player-cover-overlay .play-btn {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 2;
}

.player-cover-overlay .play-btn:hover {
    transform: scale(1.1);
    background: #e50914;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
}

.player-cover-overlay .play-btn i {
    font-size: 30px;
    color: white;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-form {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .filter-clear {
        width: 100%;
        justify-content: center;
    }
    
    .results-count {
        text-align: center;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 25px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-tertiary);
    border-radius: 0;
    font-weight: 500;
    font-size: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.page-link:hover,
.page-link.active {
    background: var(--accent-primary);
}

/* Detail Page */
.detail-hero {
    position: relative;
    background: var(--bg-secondary);
    background-size: cover;
    background-position: center top;
    margin-top: -25px;
    padding: 0;
    min-height: 350px;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(13, 13, 13, 0.85) 50%, rgba(13, 13, 13, 0.7) 100%);
}

.detail-hero-content {
    position: relative;
    padding: 50px 25px 35px;
}

.detail-info {
    max-width: 650px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.meta-item.rating {
    color: var(--warning);
    font-weight: 600;
}

.detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.category-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 0;
    font-size: 11px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-tag:hover {
    background: var(--accent-primary);
}

.detail-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 550px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 0;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.btn-lg {
    padding: 12px 22px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* Episodes List */
.detail-episodes {
    padding: 25px 0;
}

.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 10px 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
}

.seasons-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.season-tab {
    padding: 7px 14px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.season-tab:hover {
    background: var(--bg-hover);
    color: white;
}

.season-tab.active {
    background: var(--accent-primary);
    color: white;
}

.season-episodes {
    display: none;
}

.season-episodes.active {
    display: block;
}

.episodes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.episode-item:hover {
    background: var(--bg-hover);
}

.episode-item .ep-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    color: var(--accent-primary);
}

.episode-item .ep-info {
    flex: 1;
}

.episode-item .ep-title {
    font-weight: 500;
    font-size: 12px;
    margin-bottom: 2px;
}

.episode-item .ep-date {
    color: var(--text-muted);
    font-size: 10px;
}

.episode-item .ep-play {
    font-size: 16px;
    color: var(--accent-primary);
}

/* Watch Page */
.watch-page {
    padding: 20px 0;
}

.watch-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
}

.watch-hero-overlay {
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(13,13,13,0.75) 100%);
    padding: 35px 25px 25px;
}

.watch-hero-content h1 {
    font-size: 22px;
    margin-bottom: 5px;
}

.watch-hero-content .episode-info {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.watch-hero-content .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.video-wrapper {
    margin-bottom: 18px;
}

.video-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}


.video-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.video-controls .btn {
    padding: 7px 14px;
    font-size: 12px;
}

.watch-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 18px;
}

.watch-section-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.season-episodes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ep-box {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 11px;
    transition: var(--transition);
    text-align: center;
    min-width: 70px;
}

.ep-box:hover,
.ep-box.current {
    background: var(--accent-primary);
}

.ep-box .num {
    font-weight: 700;
    font-size: 14px;
    display: block;
}

.ep-box .label {
    color: var(--text-muted);
    font-size: 9px;
}

.ep-box.current .label,
.ep-box:hover .label {
    color: white;
}

/* Related Content */
.related-section {
    margin-top: 35px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

/* Auth Pages */
.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.auth-box {
    width: 100%;
    max-width: 380px;
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 18px;
}

.auth-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 45px;
    margin-bottom: 18px;
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: white;
}

/* Site Description */
.site-description {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 0;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.site-description h1 {
    color: var(--accent-primary);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.site-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 13px;
}

/* Alert */
.alert {
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.alert-success {
    background: rgba(70, 211, 105, 0.1);
    color: var(--success);
    border: 1px solid rgba(70, 211, 105, 0.2);
}

.alert-error {
    background: rgba(229, 9, 20, 0.1);
    color: var(--danger);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

/* Footer */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0 18px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 25px;
}

.footer-logo .logo-text {
    font-size: 22px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

/* Search Page */
.search-page-form {
    margin-bottom: 25px;
}

.search-page-form form {
    display: flex;
    gap: 8px;
    max-width: 550px;
}

.search-input-large {
    flex: 1;
    padding: 12px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    outline: none;
}

/* Contact Page */
.contact-page {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.contact-info h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 13px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-method {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-method i {
    font-size: 18px;
    color: var(--accent-primary);
    width: 25px;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--radius-lg);
}

/* 404 */
.error-page {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 100px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.error-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.error-message {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-page {
        grid-template-columns: 1fr;
    }
    
    .site-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
        position: absolute;
        top: 55px;
        right: 0;
        width: 280px;
        max-height: calc(100vh - 55px);
        background: var(--bg-secondary);
        padding: 18px;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 99;
        overflow-y: auto;
        border-left: 1px solid var(--border-color);
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .mobile-nav {
        list-style: none;
    }
    
    .mobile-nav > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        font-weight: 500;
        font-size: 14px;
    }
    
    .mobile-dropdown-menu {
        list-style: none;
        padding-left: 25px;
        display: none;
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }
    
    .search-form {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .card-info {
        padding: 30px 8px 8px;
    }
    
    .card-title {
        font-size: 11px;
    }
    
    .card-meta {
        font-size: 9px;
        gap: 4px;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .hero-search {
        padding: 15px 0;
    }
    
    .hero-logo .logo-text {
        font-size: 32px;
    }
    
    .hero-logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-badge {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .detail-title {
        font-size: 18px;
    }
    
    .auth-box {
        padding: 22px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    gap: 4px;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--accent-primary);
}

.bottom-nav-item.search-nav-item {
    position: relative;
}

.bottom-nav-item.search-nav-item i {
    background: var(--accent-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 2000;
    flex-direction: column;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-search {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
}

.mobile-search-input-wrapper {
    position: relative;
    padding: 15px 20px;
}

.mobile-search-input-wrapper input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 50px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.mobile-search-input-wrapper input:focus {
    border-color: var(--accent-primary);
}

.mobile-search-input-wrapper i {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.mobile-search-results .search-result-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.mobile-search-results .search-result-poster {
    width: 50px;
    height: 75px;
}

.mobile-search-results .search-result-title {
    font-size: 14px;
}

.mobile-search-results .search-no-results,
.mobile-search-results .search-loading {
    padding: 40px 20px;
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: grid;
    }
    
    .main-footer {
        padding-bottom: 80px;
    }
    
    .main-content {
        padding-bottom: 70px;
    }
    
    /* Header düzenlemesi - logo sol, menü sağ */
    .header-inner {
        justify-content: space-between;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .search-wrapper {
        display: none;
    }
    
    .user-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
        background: var(--bg-tertiary);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }
    
}

/* ============================================
   ACTION BUTTONS (Watchlist & Like)
   ============================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-action i {
    font-size: 16px;
}

.btn-action:hover {
    background: var(--bg-hover);
}

.btn-action.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.btn-watchlist i {
    transition: transform 0.3s;
}

.btn-watchlist.active i {
    transform: rotate(45deg);
}

.btn-like i {
    color: var(--text-muted);
    transition: all 0.3s;
}

.btn-like:hover i,
.btn-like.active i {
    color: #e74c3c;
}

.btn-like.active {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
}

.btn-like .like-count {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-like.active .like-count {
    color: #e74c3c;
}

/* Series Hero Actions */
.series-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.btn-watch-last {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--accent-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-watch-last:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.btn-watch-last i {
    font-size: 16px;
}

/* Film Actions */
.film-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

/* User Dropdown Improvements */
.user-dropdown-menu {
    min-width: 200px;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
}

.user-dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.user-dropdown-menu a:hover i {
    color: var(--accent-primary);
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 5px 0;
}

.dropdown-user-info {
    display: block;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .btn-action {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .btn-action span {
        display: none;
    }
    
    .btn-action i {
        font-size: 18px;
    }
    
    .series-hero-actions {
        gap: 8px;
    }
    
    .btn-watch-last {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification i {
    font-size: 18px;
}

.toast-success {
    border-color: #46d369;
}

.toast-success i {
    color: #46d369;
}

.toast-error {
    border-color: var(--danger);
}

.toast-error i {
    color: var(--danger);
}

.toast-info {
    border-color: #0080ff;
}

.toast-info i {
    color: #0080ff;
}

@media (max-width: 768px) {
    .toast-notification {
        bottom: 120px;
        left: 20px;
        right: 20px;
        transform: translateX(0) translateY(100px);
    }
    
    .toast-notification.show {
        transform: translateX(0) translateY(0);
    }
}

.watch-title-top {
    padding: 16px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.watch-title-top h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.watch-title-top .episode-name {
    color: var(--text-muted);
    font-size: 14px;
    display: block;
}

.watch-title-top .film-year {
    color: var(--text-muted);
    font-size: 14px;
}

.watch-title-top .original-title {
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}

.film-page .watch-title-top {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-btn.all {
    background: var(--accent-primary);
    color: white;
}

.episode-panel {
    background: var(--bg-secondary);
    padding: 16px;
    margin-bottom: 20px;
}

.season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.season-tab-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.season-tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.season-content {
    display: none;
}

.season-content.active {
    display: block;
}

.episode-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
    text-decoration: none;
}

.episode-item:hover,
.episode-item.active {
    background: var(--accent-primary);
    color: white;
}

.episode-item .ep-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    font-size: 11px;
    font-weight: 600;
}

.episode-item .ep-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player-container {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    max-height: 80vh;
}

.player-cover-overlay,
.video-player-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.preroll-ad {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    display: none;
}

.player-cover-overlay {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.player-cover-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.player-cover-overlay .play-btn {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.player-cover-overlay .play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-secondary);
}

.player-cover-overlay .play-btn i {
    color: white;
    font-size: 30px;
    margin-left: 5px;
}

.video-player-wrapper {
    z-index: 1;
}

.video-player-wrapper video,
.video-player-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#playerContent {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

#playerContent > div,
#playerContent iframe,
#playerContent video,
#playerContent .pjsdiv {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.video-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 14px;
}

.preroll-ad video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.preroll-clickable {
    position: absolute;
    inset: 0;
    z-index: 12;
    cursor: pointer;
}

.preroll-skip-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    pointer-events: auto;
}

.preroll-skip-box .skip-countdown {
    display: inline-block;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

.preroll-skip-box .skip-btn {
    display: none;
    background: rgba(255,255,255,0.95);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.preroll-skip-box .skip-btn:hover {
    background: #fff;
}

.preroll-skip-box .skip-btn.show {
    display: inline-block;
}

.preroll-skip-box .skip-countdown.hide {
    display: none;
}

.film-info-box {
    background: var(--bg-secondary);
    padding: 20px;
    margin-bottom: 20px;
}

.film-info-grid {
    display: flex;
    gap: 20px;
}

.film-poster {
    width: 160px;
    flex-shrink: 0;
}

.film-poster img {
    width: 100%;
}

.film-details {
    flex: 1;
    min-width: 0;
}

.film-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.film-original-title {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.film-meta .rating {
    color: var(--warning);
}

.film-meta .quality {
    background: var(--accent-primary);
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.film-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.film-categories .label {
    color: var(--accent-primary);
    font-size: 12px;
}

.film-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.film-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comments-form h3 {
    font-size: 15px;
    margin-bottom: 15px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}

@media (max-width: 640px) {
    .episode-navigation {
        flex-direction: column;
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .episode-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .film-info-grid {
        flex-direction: column;
    }
    .film-poster {
        width: 120px;
    }
}

.series-detail-page {
    padding-bottom: 40px;
}

.series-hero {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: flex-end;
    padding-bottom: 30px;
}

.series-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
}

.series-hero-content {
    position: relative;
    z-index: 2;
}

.series-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.series-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn-watch-last {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-watch-last:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.series-content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.series-main {
    flex: 1;
    min-width: 0;
}

.series-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.series-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.series-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.series-tabs .tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.series-tabs .tab-btn:hover {
    color: var(--text-primary);
}

.series-tabs .tab-btn.active {
    color: var(--text-primary);
}

.series-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
}

.season-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.season-btn {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.season-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.detail-episode-list {
    display: none;
}

.detail-episode-list.active {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-episode-item {
    display: block;
    padding: 15px;
    background: var(--bg-secondary);
    transition: var(--transition);
    text-decoration: none;
}

.detail-episode-item:hover {
    background: var(--bg-tertiary);
}

.detail-episode-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.detail-episode-subtitle {
    color: var(--text-muted);
    font-size: 12px;
}

.sidebar-info {
    background: transparent;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-size: 13px;
}

.info-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
}

.info-value.categories a {
    color: var(--accent-primary);
    display: block;
}

.info-value.categories a:hover {
    text-decoration: underline;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.recommended-section {
    margin-top: 50px;
}

.recommended-section .section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.recommended-card {
    display: block;
    overflow: hidden;
    transition: var(--transition);
}

.recommended-card:hover {
    transform: translateY(-5px);
}

.recommended-poster {
    position: relative;
    aspect-ratio: 2/3;
}

.recommended-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-poster .poster-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
}

.recommended-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 12px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.recommended-info h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-info .year {
    font-size: 11px;
    color: var(--text-muted);
}

.no-episodes {
    padding: 40px;
    text-align: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .series-content-wrapper {
        flex-direction: column;
    }
    .series-sidebar {
        width: 100%;
        order: -1;
    }
    .sidebar-info {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }
    .info-row {
        flex: 1;
        min-width: 120px;
        flex-direction: column;
        gap: 5px;
        border-bottom: none;
        padding: 10px;
        background: var(--bg-secondary);
    }
    .info-value {
        text-align: left;
    }
    .recommended-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .series-hero {
        min-height: 300px;
    }
    .series-title {
        font-size: 24px;
    }
    .detail-episode-list.active {
        grid-template-columns: 1fr;
    }
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .season-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    .season-btn {
        white-space: nowrap;
    }
}
