/* Dizi & Film Fragman Portalı - 2026 Core Web Vitals Uyumlu Modern CSS */
:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent: #e50914;
    --accent-hover: #b80710;
    --badge-bg: rgba(229, 9, 20, 0.12);
    --badge-text: #e50914;
    --sidebar-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #0f1115;
    --bg-surface: #161922;
    --bg-card: #1c202d;
    --border-color: #272d3f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #e50914;
    --accent-hover: #ff2d38;
    --badge-bg: rgba(229, 9, 20, 0.25);
    --badge-text: #ff6b72;
    --sidebar-bg: #161922;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.45);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.theme-toggle-btn, .search-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover, .search-toggle-btn:hover {
    background: var(--border-color);
}

/* Stories Bar */
.stories-section {
    padding: 1rem 0 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.stories-section::-webkit-scrollbar { display: none; }
.stories-track {
    display: inline-flex;
    gap: 1rem;
    padding-bottom: 0.5rem;
}
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    cursor: pointer;
}
.story-avatar-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.story-item:hover .story-avatar-wrap {
    transform: scale(1.05);
}
.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-surface);
}
.story-title {
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Layout 2 Columns */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 1.5rem 0 3rem;
}

@media (max-width: 992px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Video Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.trailer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.trailer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

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

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

.badge-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 17, 21, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border-left: 3px solid var(--accent);
}

.duration-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.play-hover-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.trailer-card:hover .play-hover-btn {
    opacity: 1;
}

.play-icon-circle {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

.card-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Video Facade Player */
.video-facade-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.video-facade-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.facade-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-facade-container:hover .facade-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff2d38;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trend-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
}
.trend-item:last-child { border-bottom: none; }

.trend-thumb {
    width: 90px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.trend-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.trend-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.trend-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Ad Box */
.ad-placeholder-box {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.disclaimer-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--badge-bg);
    color: var(--badge-text);
}


/* FAQ ve Semantik İnceleme Kutusu */
.faq-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
}
.faq-block p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.faq-block p:last-child {
    margin-bottom: 0;
}
.faq-block strong {
    color: var(--accent);
    display: inline-block;
    margin-bottom: 0.2rem;
}
.trailer-review-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.25rem 0 0.6rem;
    color: var(--text-primary);
}
.trailer-review-box p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}


/* ==========================================================================
   Kategori Hapları (Sidebar & Filtreler) - Modern Profesyonel Tasarım
   ========================================================================== */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cat-pill:hover {
    background: var(--accent);
    color: #fff !important;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.cat-pill .pill-count {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.cat-pill:hover .pill-count {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.cat-pill-channel {
    border-left: 3px solid #38bdf8;
}

.cat-pill-channel:hover {
    background: #0284c7;
    border-color: #0284c7;
}

/* ==========================================================================
   Reyting Sonuçları Tablosu & Kartları
   ========================================================================== */
.rating-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.75rem;
}

.rating-table th, .rating-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.rating-table th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.82rem;
}

.rating-rank-1 { background: #fbbf24; color: #78350f; }
.rating-rank-2 { background: #94a3b8; color: #0f172a; }
.rating-rank-3 { background: #d97706; color: #fff; }
.rating-rank-default { background: var(--bg-surface); color: var(--text-secondary); }

/* ==========================================================================
   Fragman Altı Oyuncular ve Karakterler Kartları
   ========================================================================== */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cast-member-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
}

.cast-member-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    background: var(--bg-card);
}

.cast-member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

/* 2026 Kurumsal Footer ve Sayfa Stilleri */
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 0.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.88rem;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-center-credit {
    text-align: center;
    margin: 1.25rem 0 1.5rem;
    padding: 0.85rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.92rem;
    box-shadow: var(--shadow);
}

/* ========================================================
   2026 YouTube Tarzı Açıklama Katlama & Facebook Yorum Stilleri
   ======================================================== */
.yt-desc-collapsed {
    max-height: 165px !important;
    overflow: hidden !important;
}

#yt-desc-toggle-btn:hover {
    background: var(--bg-card) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    transform: translateY(-1px);
}

/* Canlı Yıldız Değerlendirme */
.star-rating-box {
    transition: var(--transition);
}
.star-rating-box:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.vote-star {
    transition: transform 0.15s ease, color 0.15s ease;
}
.vote-star:hover {
    transform: scale(1.25);
    color: #f59e0b !important;
}

/* Facebook Tarzı Yorum Alanı */
.fb-comment-card {
    transition: var(--transition);
}

.fb-comment-bubble {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fb-comment-bubble strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.fb-comment-bubble p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.fb-like-action-btn:hover,
.fb-reply-action-btn:hover {
    color: #1877f2 !important;
}

.fb-like-action-btn.liked {
    color: #1877f2 !important;
}

.quick-reaction-btn:hover {
    background: var(--bg-surface) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}



/* 2026 Sinematik 16:9 Tam Genişlik Video Oynatıcı */
.video-player-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25% !important; /* 16:9 Standart Sinema Oranı */
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.video-player-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* Mobil Uyum & Yatay Kaydırılabilir Menü (App Stili) */
@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        gap: 1.1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .main-nav::-webkit-scrollbar {
        display: none;
    }
    .main-wrapper {
        flex-direction: column !important;
    }
    .sidebar {
        width: 100% !important;
        margin-top: 2rem;
    }
}
