/* ── CastleAnime Episode CSS — Orijinal + Yeni Sistem ── */

/* Ana Layout (castle.css ile uyumlu) */
.main-content-wrapper{display:grid;grid-template-columns:1fr 300px;gap:24px;padding:20px 0;align-items:start}
.main-content{min-width:0}
.episodes-sidebar-right{position:sticky;top:80px;max-height:calc(100vh - 100px);overflow-y:auto}

/* Masaüstünde mobil bölüm listesi gizli */
@media(min-width:1025px){.episodes-sidebar-mobile-only{display:none !important}}

/* Tablet/mobil */
@media(max-width:1024px){
  .main-content-wrapper{grid-template-columns:1fr}
  .episodes-sidebar-right{position:static;max-height:none}
  .episodes-sidebar-mobile-only{display:block}
}

/* ── Orijinal CSS ── */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        #watchTogetherBtn {
            padding: 10px 20px;
            background-color: #00b894;
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: bold;
            cursor: pointer;
            margin: 10px auto;
            display: block;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #0f0f23 100%);
            color: #e2e8f0;
            line-height: 1.6;
            min-height: 100vh;
        }

        /* NAVBAR STYLES */
        .navbar {
            background: rgba(15, 15, 35, 0.95);
            backdrop-filter: blur(20px);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2em;
            font-weight: bold;
            color: #e2e8f0;
            text-decoration: none;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        .nav-menu a {
            color: #cbd5e0;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 15px;
            border-radius: 8px;
        }

        .nav-menu a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #e2e8f0;
        }

        .user-section {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        /* Daha gelişmiş hover efekti */
        .anime-poster-large {
            position: relative;
            overflow: hidden;
        }

        .anime-poster-large::after {
            content: '🎬 Anime Sayfasına Git';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 15px 20px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2;
            pointer-events: none;
        }

        .anime-poster-large:hover::after {
            opacity: 1;
        }

        .user-info {
            color: #cbd5e0;
            font-weight: 500;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            background: rgba(74, 85, 104, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .user-info:hover {
            background: rgba(74, 85, 104, 0.4);
            color: #e2e8f0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .login-btn,
        .admin-btn,
        .logout-btn {
            background: rgba(102, 126, 234, 0.2);
            padding: 10px 20px;
            border-radius: 8px;
            text-decoration: none;
            color: #e2e8f0;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 1px solid rgba(102, 126, 234, 0.3);
            cursor: pointer;
            font-size: 14px;
        }

        .login-btn:hover,
        .admin-btn:hover,
        .logout-btn:hover {
            background: rgba(102, 126, 234, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        /* DROPDOWN STYLES */
        .user-dropdown {
            position: relative;
            display: inline-block;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            background: rgba(15, 15, 35, 0.95);
            backdrop-filter: blur(20px);
            min-width: 180px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1001;
            margin-top: 5px;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        /* Mobil Episodes Sidebar - Yeni eklenen */
        .episodes-sidebar-mobile-only {
            display: none;
            /* Varsayılan olarak gizli */
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin: 20px 0;
            width: 100%;
        }

        /* Sadece 768px ve altında (mobil/tablet) göster */
        @media (max-width: 768px) {
            .episodes-sidebar-mobile-only {
                display: block !important;
            }

            /* Orijinal sağdaki sidebar'ı mobilde gizle */
            .episodes-sidebar-right {
                display: none !important;
            }

            /* Main content wrapper'ı mobilde düzelt */
            .main-content-wrapper {
                flex-direction: column;
                gap: 20px;
            }

            .main-content {
                max-width: 100%;
                width: 100%;
            }

            /* Mobil episodes sidebar içeriği */
            .episodes-sidebar-mobile-only .episodes-sidebar-content {
                padding: 20px;
                max-height: 400px;
                overflow-y: auto;
            }

            .episodes-sidebar-mobile-only .episodes-sidebar-content h3 {
                color: #e2e8f0;
                margin-bottom: 20px;
                font-size: 1.4em;
                text-align: center;
            }
        }

        /* 769px ve üstünde (desktop) mobil sidebar'ı gizle */
        @media (min-width: 769px) {
            .episodes-sidebar-mobile-only {
                display: none !important;
            }
        }

        .dropdown-content a {
            color: #cbd5e0;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            font-weight: 500;
            transition: all 0.3s ease;
            border-radius: 8px;
            margin: 4px;
        }

        .dropdown-content a:hover {
            background: rgba(74, 85, 104, 0.8);
            color: #e2e8f0;
        }

        .user-dropdown:hover .dropdown-content {
            display: block;
            opacity: 1;
            transform: translateY(0);
            pointer-events: all;
        }

        /* MOBILE MENU STYLES */
        .hamburger-menu {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 5px;
            z-index: 1002;
        }

        .hamburger-line {
            width: 25px;
            height: 3px;
            background: #e2e8f0;
            margin: 2px 0;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .hamburger-menu.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .hamburger-menu.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .hamburger-menu.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .mobile-menu-overlay.active {
            display: block;
        }

        .nav-menu.mobile {
            position: fixed;
            top: 0;
            right: -100%;
            width: 280px;
            height: 100vh;
            background: rgba(15, 15, 35, 0.98);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 80px 20px 20px 20px;
            gap: 0;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            transition: right 0.3s ease;
            z-index: 1001;
            overflow-y: auto;
        }

        .nav-menu.mobile.active {
            right: 0;
        }

        .nav-menu.mobile li {
            width: 100%;
            margin-bottom: 10px;
        }

        .nav-menu.mobile a {
            display: block;
            padding: 15px;
            width: 100%;
            text-align: center;
            border-radius: 12px;
            font-size: 16px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* CONTAINER STYLES */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            width: 100%;
        }

        /* MAIN LAYOUT */
        .main-content-wrapper {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            width: 100%;
        }

        .main-content {
            flex: 1;
            max-width: calc(100% - 350px);
            width: 100%;
            min-width: 0;
            /* Flexbox shrinking için */
        }

        .episodes-sidebar-right {
            flex: 0 0 320px;
            position: sticky;
            top: 100px;
            height: auto;
            /* fit-content yerine */
            max-height: none;
            /* Sınırı tamamen kaldır */
        }

        .episodes-sidebar-content {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 20px;
            overflow-y: visible;
            /* auto yerine */
            max-height: none;
            /* Sınırı tamamen kaldır */
            scrollbar-width: thin;
            scrollbar-color: rgba(74, 85, 104, 0.7) rgba(26, 32, 44, 0.5);
        }

        /* EPISODE HEADER */
        .episode-header {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px;
            margin-bottom: 30px;
        }

        .fansub-info-card {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 20px;
            margin-top: 15px;
            /* Bu değeri 30px yapabilirsiniz daha fazla boşluk için */
            margin-bottom: 30px;
            /* Bu satırı ekleyin alt boşluk için */
            display: none;
            animation: fadeInUp 0.3s ease;
        }

        .fansub-info-card.active {
            display: block;
        }

        .fansub-card-header {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .fansub-card-title {
            font-size: 1.2em;
            font-weight: 600;
            color: #e2e8f0;
            margin: 0;
        }

        .fansub-card-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
        }

        .fansub-members-section {
            background: rgba(26, 32, 44, 0.6);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .fansub-social-section {
            background: rgba(26, 32, 44, 0.6);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .fansub-section-title {
            color: #cbd5e0;
            font-size: 1em;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .fansub-member-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 10px;
            margin-bottom: 8px;
            background: rgba(74, 85, 104, 0.3);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .fansub-member-item:hover {
            background: rgba(74, 85, 104, 0.5);
            transform: translateX(3px);
        }

        .fansub-member-name {
            color: #e2e8f0;
            font-weight: 500;
        }

        .fansub-member-role {
            background: rgba(102, 126, 234, 0.3);
            color: #cbd5e0;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: 500;
        }

        .fansub-social-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .fansub-social-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            background: rgba(74, 85, 104, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #e2e8f0;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .fansub-social-link:hover {
            background: rgba(102, 126, 234, 0.3);
            border-color: rgba(102, 126, 234, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .fansub-social-icon {
            font-size: 1.1em;
        }

        .no-members-message,
        .no-social-message {
            color: #a0aec0;
            font-style: italic;
            text-align: center;
            padding: 15px;
            font-size: 0.9em;
        }

        /* Responsive Mobile */
        @media (max-width: 768px) {
            .fansub-card-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .fansub-info-card {
                padding: 15px;
            }

            .fansub-social-links {
                flex-direction: column;
            }

            .fansub-social-link {
                justify-content: center;
                width: 100%;
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .back-btn {
            background: rgba(102, 126, 234, 0.2);
            color: #e2e8f0;
            text-decoration: none;
            padding: 12px 20px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
            border: 1px solid rgba(102, 126, 234, 0.3);
            font-weight: 600;
        }

        .back-btn:hover {
            background: rgba(102, 126, 234, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .episode-title {
            font-size: 2.5em;
            margin-bottom: 10px;
            color: #e2e8f0;
            background: linear-gradient(45deg, #cbd5e0, #e2e8f0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .episode-meta {
            color: #a0aec0;
            font-size: 1.1em;
            margin-bottom: 20px;
        }

        /* VIDEO SECTION */
        .video-section {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px;
            margin-bottom: 30px;
        }

        .source-selector {
            margin-bottom: 20px;
            background: rgba(26, 32, 44, 0.6);
            padding: 15px;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .source-selector label {
            color: #e2e8f0;
            font-weight: 600;
            display: block;
            margin-bottom: 10px;
        }

        .source-selector select {
            width: 100%;
            padding: 12px;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #e2e8f0;
            font-size: 16px;
        }

        .video-player {
            width: 100%;
            height: 500px;
            position: relative;
            background: #000;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            aspect-ratio: 16 / 9;
        }

        .select-source-message {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #a0aec0;
            font-size: 1.2em;
            text-align: center;
            flex-direction: column;
            gap: 10px;
        }

        #video-container {
            width: 100%;
            height: 100%;
            position: relative;
        }

        #video-container iframe,
        #video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100% !important;
            height: 100% !important;
            border-radius: 10px;
        }

        /* EPISODE NAVIGATION */
        .episode-navigation {
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 20px;
            margin-bottom: 30px;
        }

        .episode-navigation .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            max-width: none;
            padding: 0;
        }

        .nav-btn {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            background: rgba(102, 126, 234, 0.2);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 12px;
            text-decoration: none;
            color: #e2e8f0;
            transition: all 0.3s ease;
            min-width: 200px;
            flex: 1;
            max-width: 300px;
        }

        .nav-btn:hover:not(.disabled) {
            background: rgba(102, 126, 234, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .nav-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .nav-icon {
            font-size: 1.5em;
            font-weight: bold;
        }

        .nav-info {
            flex: 1;
        }

        .nav-label {
            font-size: 0.9em;
            color: #a0aec0;
        }

        .nav-title {
            font-weight: 600;
            margin-top: 2px;
        }

        .next-btn {
            text-align: right;
        }

        /* EPISODE INFO SECTION */
        .episode-info {
            display: flex;
            gap: 30px;
            margin-bottom: 30px;
            align-items: flex-start;
        }

        .description-section {
            flex: 2;
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px;
        }

        .description-section h3 {
            color: #e2e8f0;
            margin-bottom: 15px;
            font-size: 1.5em;
        }

        .description-section p {
            color: #a0aec0;
            line-height: 1.6;
        }

        .sidebar-info {
            flex: 1;
            min-width: 320px;
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px;
        }

        /* Anime poster hover efekti */
        .anime-poster-large {
            width: 100%;
            height: 400px;
            background: rgba(74, 85, 104, 0.8);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3em;
            color: #cbd5e0;
            margin-bottom: 20px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
            /* El işareti ekler */
            transition: all 0.3s ease;
            /* Geçiş animasyonu */
        }

        .anime-poster-large::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(102, 126, 234, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 10px;
            z-index: 1;
        }

        .anime-poster-large:hover::before {
            opacity: 1;
        }

        .anime-poster-large:hover {
            transform: scale(1.05);
            /* Resmi büyütür */
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
            border: 2px solid rgba(102, 126, 234, 0.5);
        }

        .anime-poster-large img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            transition: all 0.3s ease;
            position: relative;
            z-index: 0;
        }

        .anime-poster-large:hover img {
            transform: scale(1.1);
            /* Resmin kendisini daha çok büyütür */
            filter: brightness(1.1) saturate(1.2);
            /* Renkleri canlandırır */
        }

        /* Tıklama efekti */
        .anime-poster-large:active {
            transform: scale(0.98);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-item {
            background: rgba(26, 32, 44, 0.6);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .stat-number {
            font-size: 1.5em;
            font-weight: bold;
            color: #cbd5e0;
            margin-bottom: 5px;
        }

        .stat-label {
            color: #a0aec0;
            font-size: 0.9em;
        }

        /* EPISODES SIDEBAR */
        .episodes-sidebar-content h3 {
            color: #e2e8f0;
            margin-bottom: 20px;
            font-size: 1.4em;
            text-align: center;
        }

        .episodes-scroll {
            display: flex;
            flex-direction: column;
            gap: 15px;
            height: auto;
            /* max-height'ı tamamen kaldır */
            max-height: none;
            overflow-y: auto;
            padding-right: 8px;
        }

        .episodes-season-group {
            margin-bottom: 15px;
        }

        .episodes-season-header {
            background: rgba(26, 32, 44, 0.8);
            padding: 12px 15px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            color: #cbd5e0;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.1);
            min-height: 48px;
        }

        .episodes-season-header:hover {
            background: rgba(26, 32, 44, 1);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .episodes-season-header .toggle-icon {
            transition: transform 0.3s ease;
            font-size: 0.8em;
        }

        .episodes-season-header.active .toggle-icon {
            transform: rotate(180deg);
        }

        /* Sezon listesi kapalıyken */
        .episodes-season-list {
            max-height: 0;
            overflow: hidden;
            /* kapalıyken içerik gizli */
            transition: max-height 0.3s ease;
        }

        /* Sezon listesi açıldığında: 5 bölüm kadar yükseklik + iç scroll */
        .episodes-season-list.active {
            /* Her bölüm minimum 56px. 5 bölüm ≈ 280px. Biraz pay ekleyip 300px kullanalım. */
            max-height: 300px;
            /* 5 bölüm yüksekliği için sabit limit */
            overflow-y: auto;
            /* fazlası için dikey kaydırma */
            margin-top: 8px;
        }

        /* İsteğe bağlı: scrollbar ince ve şık görünsün */
        .episodes-season-list.active::-webkit-scrollbar {
            width: 6px;
        }

        .episodes-season-list.active::-webkit-scrollbar-thumb {
            background: rgba(74, 85, 104, 0.6);
            border-radius: 3px;
        }

        .episodes-season-list.active::-webkit-scrollbar-thumb:hover {
            background: rgba(74, 85, 104, 0.9);
        }




        .episodes-item {
            display: flex;
            align-items: center;
            padding: 12px;
            margin-bottom: 8px;
            background: rgba(26, 32, 44, 0.6);
            border-radius: 8px;
            text-decoration: none;
            color: #e2e8f0;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
            min-height: 56px;
        }

        .episodes-item:hover {
            background: rgba(26, 32, 44, 0.9);
            transform: translateX(5px);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .episodes-item.current {
            background: rgba(74, 85, 104, 0.8);
            border-color: rgba(203, 213, 224, 0.3);
            box-shadow: 0 2px 8px rgba(74, 85, 104, 0.3);
        }

        .episodes-item .ep-num {
            width: 36px;
            height: 36px;
            background: rgba(74, 85, 104, 0.8);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            margin-right: 12px;
            font-size: 0.9em;
            flex-shrink: 0;
        }

        .episodes-item.current .ep-num {
            background: rgba(203, 213, 224, 0.8);
            color: #1a202c;
        }

        .episodes-item .ep-title {
            flex: 1;
            font-size: 0.9em;
            line-height: 1.4;
            word-wrap: break-word;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* COMMENTS SECTION */
        .comments-section {
            max-width: 900px;
            margin: 30px auto 0 auto;
            background: rgba(26, 26, 46, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 30px;
        }

        .comments-section h3 {
            color: #e2e8f0;
            margin-bottom: 25px;
            font-size: 1.5em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .comment-form-wrapper {
            background: rgba(26, 32, 44, 0.6);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comment-form textarea {
            width: 100%;
            min-height: 120px;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #e2e8f0;
            padding: 15px;
            font-size: 16px;
            font-family: inherit;
            resize: vertical;
            transition: all 0.3s ease;
        }

        .comment-form textarea:focus {
            outline: none;
            border-color: rgba(203, 213, 224, 0.5);
            box-shadow: 0 0 15px rgba(203, 213, 224, 0.1);
        }

        .comment-form textarea::placeholder {
            color: #718096;
        }

        .character-count {
            text-align: right;
            color: #a0aec0;
            font-size: 0.9em;
            margin-top: 8px;
            margin-bottom: 15px;
        }

        .comment-submit-btn {
            background: linear-gradient(45deg, #4a5568, #2d3748);
            color: #e2e8f0;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .comment-submit-btn:hover {
            background: linear-gradient(45deg, #764ba2, #667eea);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .login-required {
            text-align: center;
            padding: 30px;
            color: #a0aec0;
            background: rgba(74, 85, 104, 0.3);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .comment-alert {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-weight: 500;
        }

        .comment-alert.success {
            background: rgba(72, 187, 120, 0.2);
            color: #68d391;
            border: 1px solid rgba(72, 187, 120, 0.3);
        }

        .comment-alert.error {
            background: rgba(245, 101, 101, 0.2);
            color: #fc8181;
            border: 1px solid rgba(245, 101, 101, 0.3);
        }

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .comment-item {
            background: rgba(26, 32, 44, 0.6);
            border-radius: 12px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .comment-item:hover {
            background: rgba(26, 32, 44, 0.8);
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .comment-author {
            color: #cbd5e0;
            font-weight: 600;
        }

        .comment-date {
            color: #718096;
            font-size: 0.9em;
        }

        .comment-text {
            color: #e2e8f0;
            line-height: 1.6;
        }

        .comment-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .action-btn {
            background: none;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #a0aec0;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .action-btn:hover:not(.disabled) {
            background: rgba(74, 85, 104, 0.6);
            color: #e2e8f0;
        }

        .action-btn.active {
            background: rgba(74, 85, 104, 0.8);
            color: #e2e8f0;
            border-color: rgba(203, 213, 224, 0.3);
        }

        /* FULLSCREEN STYLES */
        .fullscreen-trigger-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            z-index: 100;
            display: none;
        }

        .mobile-fullscreen-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: #000;
            z-index: 10000;
        }

        .mobile-fullscreen-overlay.active {
            display: flex;
            flex-direction: column;
        }

        .mobile-fullscreen-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            z-index: 10001;
        }

        .mobile-fullscreen-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }

        .mobile-fullscreen-video {
            flex: 1;
            width: 100%;
            height: 100%;
            position: relative;
        }

        .mobile-fullscreen-video iframe {
            width: 100% !important;
            height: 100% !important;
            border: none;
            border-radius: 0;
        }

        /* SCROLLBAR STYLING */
        .episodes-sidebar-content::-webkit-scrollbar {
            width: 6px;
        }

        .episodes-sidebar-content::-webkit-scrollbar-track {
            background: rgba(26, 32, 44, 0.5);
            border-radius: 3px;
        }

        .episodes-sidebar-content::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(102, 126, 234, 0.6), rgba(74, 85, 104, 0.8));
            box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        }

        .episodes-sidebar-content::-webkit-scrollbar-thumb:hover {
            background: rgba(74, 85, 104, 1);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 14px;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .download-btn:hover:not(.disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .download-btn.disabled {
            background: #6c757d;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .download-btn.login-required {
            background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
        }

        .download-btn.login-required:hover {
            background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
        }

        .download-icon {
            font-size: 16px;
        }

        .download-text small {
            font-size: 11px;
            opacity: 0.9;
            display: block;
            margin-top: 2px;
        }

        .download-dropdown-container {
            position: relative;
            display: inline-block;
        }

        .download-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 200px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            display: none;
            margin-top: 5px;
        }

        .download-dropdown.active {
            display: block;
            animation: fadeInDown 0.3s ease;
        }

        .download-option {
            display: block;
            padding: 12px 16px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.2s ease;
        }

        .download-option:hover {
            background: #f8f9fa;
            color: #667eea;
        }

        .download-option:last-child {
            border-bottom: none;
        }

        .dropdown-arrow {
            font-size: 12px;
            transition: transform 0.3s ease;
        }

        .download-dropdown-container.active .dropdown-arrow {
            transform: rotate(180deg);
        }

        .ca-points-display {
            display: flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 12px;
            border-radius: 20px;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }

        .ca-icon {
            font-size: 16px;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            color: white;
            font-size: 18px;
        }

        .loading-overlay.active {
            display: flex;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 768px) {
            .header-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .download-btn {
                justify-content: center;
                padding: 15px 20px;
            }

            .ca-points-display {
                align-self: center;
                margin-top: 10px;
            }
        }

        /* PLYR CUSTOMIZATION */
        :root {
            --plyr-color-main: #4a5568;
            --plyr-video-background: #000;
            --plyr-menu-background: rgba(45, 55, 72, 0.9);
            --plyr-menu-color: #e2e8f0;
            --plyr-control-icon-size: 18px;
            --plyr-control-spacing: 10px;
        }

        .plyr {
            border-radius: 10px;
        }

        .plyr--video {
            height: 100%;
        }

        .plyr__video-wrapper {
            height: 100%;
        }

        .plyr video {
            height: 100%;
        }

        /* TABLET RESPONSIVE (768px - 1024px) */
        @media (max-width: 1024px) {
            .main-content-wrapper {
                flex-direction: column;
                gap: 20px;
            }

            .main-content {
                max-width: none;
            }

            .episodes-sidebar-right {
                flex: none;
                position: static;
                max-height: 400px;
            }

            .episode-info {
                flex-direction: column;
                gap: 20px;
            }

            .sidebar-info {
                min-width: auto;
            }

            .anime-poster-large {
                height: 300px;
            }

            .episode-navigation .nav-container {
                flex-direction: column;
                gap: 15px;
            }

            .nav-btn {
                min-width: auto;
                width: 100%;
                max-width: none;
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 10px;
            }
        }

        /* MOBILE RESPONSIVE (768px and below) */
        @media (max-width: 768px) {

            .nav-menu.desktop,
            .user-section.desktop {
                display: none;
            }

            .hamburger-menu {
                display: flex;
            }

            .nav-container {
                padding: 0 15px;
            }

            .logo {
                font-size: 1.6em;
            }

            .container {
                padding: 10px;
            }

            .episode-header {
                padding: 20px 15px;
                margin-bottom: 15px;
            }

            .episode-title {
                font-size: 1.8em;
                line-height: 1.2;
            }

            .episode-meta {
                font-size: 0.9em;
            }

            .video-section {
                padding: 15px;
                margin-bottom: 15px;
            }

            .video-player {
                height: auto;
                min-height: 200px;
            }

            .fullscreen-trigger-btn {
                display: block;
            }

            .source-selector {
                padding: 10px;
                margin-bottom: 15px;
            }

            .source-selector select {
                padding: 10px;
                font-size: 14px;
            }

            .episode-info {
                flex-direction: column;
                gap: 15px;
                margin-bottom: 20px;
            }

            .description-section {
                order: 2;
                padding: 20px 15px;
            }

            .sidebar-info {
                order: 1;
                padding: 20px 15px;
            }

            .anime-poster-large {
                max-width: 200px;
                height: 280px;
                margin: 0 auto 15px auto;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .stat-item {
                padding: 10px;
            }

            .stat-number {
                font-size: 1.2em;
            }

            .stat-label {
                font-size: 0.8em;
            }

            .episode-navigation {
                padding: 15px 10px;
            }

            .episode-navigation .nav-container {
                flex-direction: column;
                gap: 10px;
            }

            .nav-btn {
                min-width: auto;
                width: 100%;
                padding: 12px 15px;
            }

            .nav-icon {
                font-size: 1.2em;
            }

            .episodes-sidebar-content {
                padding: 15px;
                max-height: 350px;
            }

            .episodes-sidebar-content h3 {
                font-size: 1.2em;
            }

            .episodes-item {
                padding: 12px;
                min-height: 52px;
            }

            .episodes-item .ep-num {
                width: 32px;
                height: 32px;
                margin-right: 10px;
                font-size: 0.85em;
            }

            .episodes-item .ep-title {
                font-size: 0.85em;
            }

            .comments-section {
                padding: 20px 15px;
                margin: 20px auto 0 auto;
            }

            .comment-form-wrapper {
                padding: 15px;
            }

            .comment-form textarea {
                min-height: 100px;
                padding: 12px;
                font-size: 14px;
            }

            .comment-item {
                padding: 15px;
            }

            .comment-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
            }

            .comment-actions {
                flex-wrap: wrap;
                gap: 8px;
            }

            .action-btn {
                font-size: 0.8em;
                padding: 5px 10px;
            }

            .description-section h3,
            .sidebar-info h3,
            .comments-section h3 {
                font-size: 1.3em;
            }

            .description-section p,
            .sidebar-info p {
                font-size: 0.9em;
                line-height: 1.5;
            }
        }

        /* EXTRA SMALL MOBILE (480px and below) */
        @media (max-width: 480px) {
            .nav-container {
                padding: 0 10px;
            }

            .logo {
                font-size: 1.4em;
            }

            .nav-menu.mobile {
                width: 100%;
                right: -100%;
            }

            .nav-menu.mobile.active {
                right: 0;
            }

            .container {
                padding: 5px;
            }

            .episode-header {
                padding: 15px 10px;
            }

            .episode-title {
                font-size: 1.5em;
            }

            .video-section,
            .episodes-sidebar-content,
            .comments-section,
            .description-section,
            .sidebar-info {
                padding: 15px 10px;
            }

            .video-player {
                height: auto;
                min-height: 180px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .anime-poster-large {
                max-width: 150px;
                height: 210px;
            }

            .nav-btn {
                padding: 10px;
            }

            .episode-navigation {
                padding: 15px 10px;
            }

            .comment-actions {
                justify-content: center;
            }

            .description-section h3,
            .sidebar-info h3,
            .episodes-sidebar-content h3,
            .comments-section h3 {
                font-size: 1.2em;
            }

            .description-section p,
            .sidebar-info p {
                font-size: 0.85em;
                line-height: 1.4;
            }

            .episodes-item {
                padding: 10px 8px;
                min-height: 48px;
            }

            .episodes-item .ep-num {
                width: 28px;
                height: 28px;
                margin-right: 8px;
                font-size: 0.8em;
            }

            .episodes-item .ep-title {
                font-size: 0.8em;
            }
        }

        /* IFRAME SPECIFIC RESPONSIVE STYLES */


        @media (max-width: 768px) {

            #video-container iframe[src*="sendvid"],
            #video-container iframe[src*="drive.google"],
            #video-container iframe[src*="sibnet"],
            #video-container iframe[src*="ok.ru"],
            #video-container iframe[src*="vidmoly"] {
                /* BU SATIRI EKLEYİN */
                height: 250px !important;
                min-height: 250px !important;
            }
        }

        @media (max-width: 480px) {

            #video-container iframe[src*="sendvid"],
            #video-container iframe[src*="drive.google"],
            #video-container iframe[src*="sibnet"],
            #video-container iframe[src*="ok.ru"],
            #video-container iframe[src*="vidmoly"] {
                /* BU SATIRI EKLEYİN */
                height: 220px !important;
                min-height: 220px !important;
            }
        }





        /* Watch Together Buton Stilleri - Site Stiline Uygun */
        .watch-together-btn {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            background: rgba(102, 126, 234, 0.2) !important;
            border: 1px solid rgba(102, 126, 234, 0.3) !important;
            border-radius: 12px;
            text-decoration: none;
            color: #e2e8f0 !important;
            transition: all 0.3s ease;
            min-width: 200px;
            flex: 1;
            max-width: 300px;
            font-weight: 600;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .watch-together-btn:hover:not(.disabled) {
            background: rgba(102, 126, 234, 0.3) !important;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .watch-together-btn:active:not(.disabled) {
            transform: translateY(0);
        }

        .watch-together-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Watch Together butonunun içeriği */
        .watch-together-btn .nav-icon {
            font-size: 1.5em;
            font-weight: bold;
        }

        .watch-together-btn .nav-info {
            flex: 1;
            text-align: center;
        }

        .watch-together-btn .nav-label {
            font-size: 0.9em;
            color: #a0aec0;
        }

        .watch-together-btn .nav-title {
            font-weight: 600;
            margin-top: 2px;
            color: #e2e8f0;
        }

        /* Navigation container'ı 3 eleman için düzenleme */
        .episode-navigation .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            max-width: none;
            padding: 0;
        }

        .episode-navigation .nav-btn {
            flex: 1;
            min-width: 200px;
            max-width: 300px;
        }

        /* Loading animasyonu */
        .watch-together-btn.loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .watch-together-btn.loading .nav-icon {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Aktif durum */
        .watch-together-btn.active {
            background: rgba(74, 85, 104, 0.8) !important;
            border-color: rgba(203, 213, 224, 0.3) !important;
            box-shadow: 0 2px 8px rgba(74, 85, 104, 0.3);
        }

        /* Tablet düzenleme */
        @media (max-width: 1024px) {
            .episode-navigation .nav-container {
                flex-direction: column;
                gap: 15px;
            }

            .episode-navigation .nav-btn,
            .watch-together-btn {
                min-width: auto;
                width: 100%;
                max-width: none;
            }
        }

        /* Mobil düzenleme */
        @media (max-width: 768px) {
            .episode-navigation .nav-container {
                flex-direction: column;
                gap: 10px;
            }

            .episode-navigation .nav-btn,
            .watch-together-btn {
                width: 100%;
                max-width: 100%;
                min-width: auto;
                padding: 12px 15px;
            }

            .watch-together-btn {
                order: 2;
                /* Ortada kalması için */
            }

            .prev-btn {
                order: 1;
            }

            .next-btn {
                order: 3;
            }

            .watch-together-btn .nav-icon {
                font-size: 1.2em;
            }
        }

        /* Extra küçük mobil */
        @media (max-width: 480px) {
            .watch-together-btn {
                padding: 10px;
            }

            .watch-together-btn .nav-label {
                font-size: 0.85em;
            }

            .watch-together-btn .nav-title {
                font-size: 0.9em;
            }
        }

        /* Fansub ve Kaynak Buton Sistemleri */
        .source-selection-container {
            background: rgba(26, 32, 44, 0.6);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
        }

        .source-selection-title {
            color: #cbd5e0;
            font-size: 1.1em;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        @media (max-width: 768px) {
            .source-selection-container {
                padding: 15px;
                padding-top: 15px;
            }

            .source-buttons-top-right {
                position: static;
                flex-direction: row;
                justify-content: flex-end;
                margin-bottom: 12px;
                gap: 8px;
            }

            .fansub-buttons-container,
            .source-buttons-container {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            .fansub-button,
            .source-button {
                width: 100%;
                text-align: center;
                padding: 10px 12px;
                font-size: 0.9em;
            }
        }

        @media (max-width: 480px) {

            .fansub-buttons-container,
            .source-buttons-container {
                grid-template-columns: 1fr;
            }

            .fansub-button,
            .source-button {
                width: 100%;
                text-align: center;
            }

            .source-buttons-top-right {
                flex-direction: column;
            }

            .source-help-button,
            .report-issue-button {
                width: 100%;
                justify-content: center;
            }
        }

        .fansub-buttons-container,
        .source-buttons-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 15px;
        }

        .fansub-button,
        .source-button {
            padding: 12px 20px;
            background: rgba(74, 85, 104, 0.4);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #e2e8f0;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .fansub-button:hover,
        .source-button:hover {
            background: rgba(74, 85, 104, 0.6);
            border-color: rgba(102, 126, 234, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        }

        .fansub-button.selected,
        .source-button.selected {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
            border-color: rgba(102, 126, 234, 0.6);
            color: #fff;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
        }

        .fansub-button.selected::before,
        .source-button.selected::before {
            content: '✓';
            position: absolute;
            top: -2px;
            right: 5px;
            font-size: 14px;
            color: #4ade80;
            animation: checkmark-pop 0.3s ease;
        }

        @keyframes checkmark-pop {
            0% {
                transform: scale(0);
                opacity: 0;
            }

            50% {
                transform: scale(1.2);
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .source-count-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.85em;
            margin-left: 5px;
        }

        /* Kaynak öncelik renkleri */
        .source-button {
            position: relative;
        }

        .source-button[data-provider="gdrive"],
        .source-button[data-provider="ok"] {
            border-color: rgba(72, 187, 120, 0.4);
        }

        .source-button[data-provider="gdrive"]:hover,
        .source-button[data-provider="ok"]:hover {
            border-color: rgba(72, 187, 120, 0.6);
            background: rgba(72, 187, 120, 0.2);
        }

        .source-button[data-provider="sibnet"],
        .source-button[data-provider="vidmoly"],
        .source-button[data-provider="sendvid"],
        .source-button[data-provider="short"] {
            border-color: rgba(251, 191, 36, 0.4);
        }

        .source-button[data-provider="sibnet"]:hover,
        .source-button[data-provider="vidmoly"]:hover,
        .source-button[data-provider="sendvid"]:hover,
        .source-button[data-provider="short"]:hover {
            border-color: rgba(251, 191, 36, 0.6);
            background: rgba(251, 191, 36, 0.2);
        }

        .source-button[data-provider="uqload"],
        .source-button[data-provider="hdvid"],
        .source-button[data-provider="mail"],
        .source-button[data-provider="luluvid"],
        .source-button[data-provider="voe"] {
            border-color: rgba(239, 68, 68, 0.4);
        }

        .source-button[data-provider="uqload"]:hover,
        .source-button[data-provider="hdvid"]:hover,
        .source-button[data-provider="mail"]:hover,
        .source-button[data-provider="luluvid"]:hover,
        .source-button[data-provider="voe"]:hover {
            border-color: rgba(239, 68, 68, 0.6);
            background: rgba(239, 68, 68, 0.2);
        }

        .sources-section {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .sources-section.visible {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


        /* Buton Container - Sağ Üstte Yan Yana */
        .source-buttons-top-right {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        /* Kaynak Tercihi Butonu */
        .source-help-button {
            background: rgba(102, 126, 234, 0.2);
            border: 1px solid rgba(102, 126, 234, 0.4);
            color: #e2e8f0;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Logo animasyonu */
        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        .source-help-button:hover {
            background: rgba(102, 126, 234, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .source-help-button::before {
            content: '❓';
            font-size: 14px;
        }

        /* Modal Overlay */
        .source-help-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }

        .source-help-modal-overlay.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* Modal İçeriği */
        .source-help-modal {
            background: rgba(26, 26, 46, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 30px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease;
        }

        /* Modal Header */
        .source-help-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(102, 126, 234, 0.3);
        }

        .source-help-modal-title {
            font-size: 1.8em;
            font-weight: 700;
            color: #e2e8f0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .source-help-modal-close {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #ef4444;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .source-help-modal-close:hover {
            background: rgba(239, 68, 68, 0.4);
            transform: rotate(90deg);
        }

        /* Modal Content */
        .source-help-modal-content {
            color: #cbd5e0;
            line-height: 1.8;
            font-size: 15px;
        }

        .source-help-modal-content p {
            margin-bottom: 15px;
        }

        .source-help-modal-content ul {
            list-style: none;
            padding-left: 0;
            margin: 15px 0;
        }

        .source-help-modal-content li {
            padding: 12px 15px;
            margin-bottom: 10px;
            background: rgba(74, 85, 104, 0.3);
            border-radius: 8px;
            border-left: 3px solid rgba(102, 126, 234, 0.6);
            transition: all 0.3s ease;
        }

        .source-help-modal-content li:hover {
            background: rgba(74, 85, 104, 0.5);
            transform: translateX(5px);
        }

        .source-help-modal-content strong {
            color: #e2e8f0;
            font-weight: 600;
        }

        /* Animasyonlar */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Scrollbar için stil */
        .source-help-modal::-webkit-scrollbar {
            width: 8px;
        }

        .source-help-modal::-webkit-scrollbar-track {
            background: rgba(26, 32, 44, 0.5);
            border-radius: 4px;
        }

        .source-help-modal::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.6);
            border-radius: 4px;
        }

        .source-help-modal::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.8);
        }

        /* Discord Sidebar Container - YENİ TASARIM */
        .discord-sidebar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #2c2f48 0%, #1a1d2e 100%);
            border: 1px solid rgba(88, 101, 242, 0.3);
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        /* Sol taraf - Logo ve bilgiler */
        .discord-left-section {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            pointer-events: none;
            margin-left: -17px;
            /* Bu satırı ekleyin - sola kaydırır */
        }

        .discord-logo-wrapper {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(88, 101, 242, 0.5);
            position: relative;
            flex-shrink: 0;
        }

        /* Online indicator - SAĞ ALTTA */
        .discord-logo-wrapper::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            background: #43b581;
            border-radius: 50%;
            bottom: -2px;
            right: -2px;
            border: 3px solid #1a1d2e;
            animation: onlinePulse 2s infinite;
            z-index: 10;
        }

        @keyframes onlinePulse {

            0%,
            100% {
                opacity: 1;
                transform: scale(1);
                box-shadow: 0 0 0 0 rgba(67, 181, 129, 0.7);
            }

            50% {
                opacity: 0.8;
                transform: scale(1.1);
                box-shadow: 0 0 0 4px rgba(67, 181, 129, 0);
            }
        }

        /* Logo - ORTADA VE BÜYÜK */
        .discord-main-logo {
            width: 32px !important;
            height: 32px !important;
            object-fit: contain;
            filter: brightness(0) invert(1);
            position: relative;
            z-index: 1;
        }

        .discord-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .discord-title {
            font-size: 16px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.3px;
        }

        .discord-subtitle {
            font-size: 12px;
            color: #43b581;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .discord-subtitle::before {
            content: '●';
            font-size: 8px;
            color: #43b581;
            animation: blink 1.5s infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.3;
            }
        }

        /* Sağ taraf - Katıl butonu (SADECE BU TIKLANABİLİR) */
        .discord-join-btn {
            padding: 10px 24px;
            background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
            border-radius: 8px;
            color: #ffffff;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
            flex-shrink: 0;
            margin-right: -13px;
        }

        .discord-join-btn:hover {
            background: linear-gradient(135deg, #4752c4 0%, #3c45a5 100%);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 4px 12px rgba(88, 101, 242, 0.5);
        }

        .discord-join-btn:active {
            transform: translateY(0) scale(1);
        }

        /* Mobil Responsive */
        @media (max-width: 768px) {
            .discord-sidebar-container {
                padding: 15px;
            }

            .discord-logo-wrapper {
                width: 45px;
                height: 45px;
            }

            .discord-main-logo {
                width: 26px !important;
                height: 26px !important;
            }

            .discord-title {
                font-size: 14px;
            }

            .discord-subtitle {
                font-size: 11px;
            }

            .discord-join-btn {
                padding: 8px 18px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .discord-left-section {
                gap: 10px;
            }

            .discord-join-btn {
                padding: 8px 16px;
                font-size: 12px;
            }
        }



        /* Mobil responsive */
        @media (max-width: 768px) {
            .source-help-button {
                padding: 6px 12px;
                font-size: 11px;
            }

            .source-help-modal {
                padding: 20px;
                width: 95%;
                max-height: 85vh;
            }

            .source-help-modal-title {
                font-size: 1.4em;
            }

            .source-help-modal-content {
                font-size: 14px;
            }
        }

        /* ============================================
   HATA BİLDİR MODAL SİSTEMİ
   ============================================ */

        /* Hata Bildir Butonu */
        .report-issue-button {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #ef4444;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .report-issue-button:hover {
            background: rgba(239, 68, 68, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }

        .report-issue-button::before {
            content: '⚠️';
            font-size: 14px;
        }

        /* Modal Overlay */
        .report-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 10000;
            animation: fadeIn 0.3s ease;
            overflow-y: auto;
            padding: 20px;
        }

        .report-modal-overlay.active {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding-top: 50px;
        }

        /* Modal Container */
        .report-modal {
            background: rgba(26, 26, 46, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 30px;
            max-width: 700px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            animation: slideUp 0.3s ease;
        }

        /* Modal Header */
        .report-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(239, 68, 68, 0.3);
        }

        .report-modal-title {
            font-size: 1.8em;
            font-weight: 700;
            color: #e2e8f0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .report-modal-close {
            background: rgba(239, 68, 68, 0.2);
            border: 1px solid rgba(239, 68, 68, 0.4);
            color: #ef4444;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .report-modal-close:hover {
            background: rgba(239, 68, 68, 0.4);
            transform: rotate(90deg);
        }

        /* Form Content */
        .report-form-content {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        /* Form Group */
        .report-form-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .report-form-label {
            color: #cbd5e0;
            font-weight: 600;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .report-form-label.required::after {
            content: '*';
            color: #ef4444;
            margin-left: 3px;
        }

        /* Problem Type Buttons */
        .report-problem-types {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 10px;
        }

        .report-problem-btn {
            padding: 12px 16px;
            background: rgba(74, 85, 104, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            color: #e2e8f0;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .report-problem-btn:hover {
            background: rgba(74, 85, 104, 0.5);
            border-color: rgba(239, 68, 68, 0.4);
            transform: translateY(-2px);
        }

        .report-problem-btn.selected {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
            border-color: rgba(239, 68, 68, 0.6);
            color: #fff;
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
        }

        .report-problem-btn .icon {
            font-size: 18px;
        }

        /* Dynamic Fields Container */
        .report-dynamic-fields {
            display: none;
            flex-direction: column;
            gap: 15px;
            padding: 20px;
            background: rgba(26, 32, 44, 0.6);
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 10px;
        }

        .report-dynamic-fields.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        /* Select Inputs */
        .report-select {
            width: 100%;
            padding: 12px;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #e2e8f0;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .report-select:focus {
            outline: none;
            border-color: rgba(239, 68, 68, 0.5);
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
        }

        /* Checkboxes */
        .report-checkbox-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .report-checkbox-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: rgba(74, 85, 104, 0.2);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .report-checkbox-item:hover {
            background: rgba(74, 85, 104, 0.4);
        }

        .report-checkbox-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .report-checkbox-item label {
            color: #e2e8f0;
            cursor: pointer;
            flex: 1;
        }

        /* Special Checkbox */
        .report-no-source-checkbox {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        /* Textarea */
        .report-textarea {
            width: 100%;
            min-height: 120px;
            padding: 12px;
            background: rgba(26, 26, 46, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: #e2e8f0;
            font-size: 14px;
            font-family: inherit;
            resize: vertical;
            transition: all 0.3s ease;
        }

        .report-textarea:focus {
            outline: none;
            border-color: rgba(239, 68, 68, 0.5);
            box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
        }

        /* Submit Button */
        .report-submit-btn {
            padding: 15px 30px;
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }

        .report-submit-btn:hover:not(:disabled) {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
        }

        .report-submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Helper Text */
        .report-helper-text {
            color: #a0aec0;
            font-size: 12px;
            font-style: italic;
            margin-top: 5px;
        }

        /* Success/Error Messages */
        .report-message {
            padding: 12px 16px;
            border-radius: 8px;
            margin-bottom: 15px;
            font-weight: 500;
            animation: slideIn 0.3s ease;
        }

        .report-message.success {
            background: rgba(72, 187, 120, 0.2);
            color: #68d391;
            border: 1px solid rgba(72, 187, 120, 0.3);
        }

        .report-message.error {
            background: rgba(245, 101, 101, 0.2);
            color: #fc8181;
            border: 1px solid rgba(245, 101, 101, 0.3);
        }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(100%);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Scrollbar */
        .report-modal::-webkit-scrollbar {
            width: 8px;
        }

        .report-modal::-webkit-scrollbar-track {
            background: rgba(26, 32, 44, 0.5);
            border-radius: 4px;
        }

        .report-modal::-webkit-scrollbar-thumb {
            background: rgba(239, 68, 68, 0.6);
            border-radius: 4px;
        }

        .report-modal::-webkit-scrollbar-thumb:hover {
            background: rgba(239, 68, 68, 0.8);
        }

        @media (max-width: 768px) {
            .source-buttons-top-right {
                gap: 8px;
            }

            .source-help-button,
            .report-issue-button {
                padding: 6px 12px;
                font-size: 11px;
            }
        }
