/**
 * Video Reels CSS
 * TikTok-style vertical scroll video player with left sidebar
 */

/* Hide site navigation when in reels mode */
body.reels-page {
    overflow: hidden;
}

body.reels-page .nav-main,
body.reels-page .nav-header,
body.reels-page footer,
body.reels-page .sidebar,
body.reels-page .breadcrumb,
body.reels-page .container-main,
body.reels-page header:not(.reels-header) {
    display: none !important;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.video-reels-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #fafafa;
    z-index: 9999;
    display: flex;
}

/* ===========================
   LEFT SIDEBAR (TikTok Style)
   =========================== */
.reels-sidebar-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.reels-sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.reels-sidebar-left::-webkit-scrollbar-track {
    background: transparent;
}

.reels-sidebar-left::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Logo Section */
.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid #e5e5e5;
    text-align: center;
}

.sidebar-logo img {
    max-width: 240px;
    height: auto;
}

/* Home Button Section */
.sidebar-home-button {
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.btn-home-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--inf-main-color) 0%, var(--inf-main-color) 100%);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(var(--inf-main-color-rgb), 0.3);
}

.btn-home-main:hover {
    background: linear-gradient(135deg, var(--inf-main-color) 0%, var(--inf-main-color) 100%);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--inf-main-color-rgb), 0.4);
    text-decoration: none;
    color: #fff;
}

.btn-home-main:active {
    transform: translateY(0);
}

.btn-home-main i {
    font-size: 16px;
}

/* Dark Mode for Home Button */
.dark-mode .sidebar-home-button {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .btn-home-main {
    background: linear-gradient(135deg, var(--inf-main-color) 0%, var(--inf-main-color) 100%);
    box-shadow: 0 2px 8px rgba(var(--inf-main-color-rgb), 0.4);
}

.dark-mode .btn-home-main:hover {
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(var(--inf-main-color-rgb), 0.5);
}

/* Menu Section */
.sidebar-menu {
    flex: 1;
    padding: 16px 0;
}

.menu-header {
    padding: 12px 20px;
    color: #0f0f0f;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.menu-header i {
    font-size: 16px;
    color: var(--inf-main-color);
}

.menu-items {
    display: flex;
    flex-direction: column;
}

.menu-section-title {
    padding: 12px 20px 8px;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.menu-section-title:first-child {
    margin-top: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #666;
    transition: color 0.2s ease;
}

.menu-item span {
    flex: 1;
}

.menu-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    text-decoration: none;
}

.menu-item:hover i {
    color: var(--inf-main-color);
}

.menu-item.active {
    background: rgba(var(--inf-main-color-rgb), 0.15);
    border-left-color: var(--inf-main-color);
    color: var(--inf-main-color);
}

.menu-item.active i {
    color: var(--inf-main-color);
}

/* Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.sidebar-footer p {
    margin: 0;
    color: #999;
    font-size: 11px;
    line-height: 1.5;
}

.sidebar-footer a {
    color: var(--inf-main-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-footer a:hover {
    color: var(--inf-main-color);
    filter: brightness(0.8);
    text-decoration: underline;
}


/* ===========================
   USER INFO SECTION
   =========================== */
.sidebar-user-info {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

/* Logged In User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 40px;
    color: var(--inf-main-color);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-logout:hover {
    color: #d32f2f;
    text-decoration: none;
}

.btn-logout i {
    font-size: 13px;
}

/* Not Logged In - Login Prompt */
.user-login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-icon i {
    font-size: 40px;
    color: #999;
}

.login-text {
    flex: 1;
}

.guest-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.login-text p {
    font-size: 11px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-login-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--inf-main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login-sidebar:hover {
    background: var(--inf-main-color);
    filter: brightness(0.9);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.btn-login-sidebar i {
    font-size: 13px;
}

/* ===========================
   THEME TOGGLE (Same as main site)
   =========================== */
.theme-toggle-wrapper {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.theme-label {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-switcher {
    position: relative;
    display: inline-block;
    width: 2.75rem;
    height: 1.375rem;
    background-color: #f1f2f5;
    border: 0.063rem solid #dadada;
    border-radius: 0.75rem;
    transition: .3s;
    flex-shrink: 0;
}

.theme-switcher:hover {
    border-color: var(--inf-main-color);
}

.theme-switcher input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switcher .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .3s;
    overflow: hidden;
}

.theme-switcher .slider:before {
    position: absolute;
    content: var(--icon-sun);
    font-family: "inf-icons";
    font-size: 14px;
    left: 0.063rem;
    bottom: 0.063rem;
    top: 0.063rem;
    color: #666;
    background: #fff;
    border-radius: 50%;
    width: 1.125rem;
    height: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.theme-switcher input:checked+.slider:before {
    transform: translateX(1.25rem);
    content: var(--icon-moon);
    transition: .3s;
}

/* Dark mode adjustments for theme toggle */
.dark-mode .theme-label {
    color: #e0e0e0;
}

.dark-mode .theme-toggle-wrapper {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* User Info Dark Mode */
.dark-mode .sidebar-user-info {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .user-name {
    color: #e0e0e0;
}

.dark-mode .user-email {
    color: #9e9e9e;
}

.dark-mode .btn-logout {
    color: #9e9e9e;
}

.dark-mode .btn-logout:hover {
    color: #f44336;
}

.dark-mode .login-icon i {
    color: #666;
}

.dark-mode .guest-name {
    color: #e0e0e0;
}

.dark-mode .login-text p {
    color: #9e9e9e;
}

/* ===========================
   RIGHT NAVIGATION ARROWS (TikTok Style)
   =========================== */
.reels-nav-arrows {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Move arrows to the left when comments drawer is active */
.reels-nav-arrows.shifted {
    right: 460px;
    /* 420px (drawer width) + 24px (padding) - stay clear of drawer */
}



.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-arrow:hover {
    background: rgba(var(--inf-main-color-rgb), 0.8);
    border-color: var(--inf-main-color);
    transform: scale(1.1);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-arrow:disabled:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1);
}

/* ===========================
   SCROLL CONTAINER (Adjusted for sidebar)
   =========================== */
.reels-scroll-container {
    margin-left: 280px;
    /* Sidebar width */
    width: calc(100% - 280px);
    /* Full width minus sidebar */
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    /* ✅ mandatory = her scroll'da ZORLA 1 item'da dur */
    /* NO scroll-behavior here - JS controls it for smooth auto-scroll only */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* Performance optimizations */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    will-change: scroll-position;
    /* GPU acceleration hint */
    contain: layout style paint;
    /* ✅ Containment - performance boost */
}

/* Shift video container when comments drawer is open */
.reels-scroll-container.shifted {
    margin-right: 420px;
    /* Comments drawer width */
    width: calc(100% - 280px - 420px);
    /* Sidebar + drawer */
}


.reels-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* ===========================
   VIDEO ITEM
   =========================== */
.video-item {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* ✅ ZORLA DUR - her item'da durmalı */
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    contain: layout style paint;
    /* ✅ Performance isolation */
}

/* ✅ Reklam item'ları için ZORLA DUR - atlanamaz */
.video-item.ad-item {
    scroll-snap-stop: always;
    /* Reklam atlanamaz */
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    /* Optimal width for vertical videos */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

/* Video Player (Plyr) */
.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f5f5f5;
}

/* Plyr customizations */
.plyr {
    width: 100%;
    height: 100%;
}

.plyr__video-wrapper {
    background: #f5f5f5;
}

.plyr--video {
    background: #f5f5f5;
}

/* Poster (kapak görseli) tam ekran dolsun */
.plyr__poster {
    background-size: cover !important;
    object-fit: cover;
}

.plyr__controls {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
}

/* ===========================
   VIDEO OVERLAY
   =========================== */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.video-overlay>* {
    pointer-events: auto;
}

/* ===========================
   VIDEO INFO (Bottom Left)
   =========================== */
.video-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 80px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.category-badge {
    display: inline-block;
    background: rgba(var(--inf-main-color-rgb), 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: var(--inf-main-color);
    transform: scale(1.05);
    text-decoration: none;
    color: #fff;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.3;
}

.video-description {
    font-size: 14px;
    margin: 8px 0;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.85;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item i {
    font-size: 14px;
}

/* ===========================
   VIDEO ACTIONS (Right Side - YouTube Shorts Style)
   =========================== */
.video-actions {
    position: absolute;
    bottom: 100px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 20;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 8px;
    border-radius: 50%;
    position: relative;
}

.action-btn i {
    font-size: 28px;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-count,
.action-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.3px;
}

/* Like button - active state (YouTube Shorts style) */
.like-btn.liked i,
.dark-mode .like-btn.liked i {
    color: #f43f5e !important;
    /* Always red, even in dark mode */
}

.like-btn.liked .fa-heart-o:before {
    content: "\f004";
    /* Solid heart */
}

/* Like button - default/unliked state (ensure proper reset) */
.like-btn:not(.liked) i {
    color: #fff;
}

.like-btn:not(.liked) .fa-heart-o:before {
    content: "\f08a";
    /* Outline heart */
}

.like-btn.liked {
    animation: likeHeartBtn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes likeHeartBtn {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Hide mobile progress bar and back button on desktop, but keep play button */
.mobile-progress-bar,
.mobile-back-btn {
    display: none;
}

/* Mobile play button - hidden on desktop */
.mobile-play-pause-btn {
    display: none;
}

.action-btn.animate-pulse {
    animation: pulseBtn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseBtn {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* View Count Badge (YouTube Shorts style) */
.view-count-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.view-count-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.view-count-badge i {
    font-size: 24px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

.view-count-badge span {
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.3px;
}

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #fafafa;
}

.empty-state-content {
    max-width: 400px;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 48px 40px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.empty-state-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.empty-state i {
    font-size: 80px;
    color: var(--inf-main-color);
    margin-bottom: 0;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(var(--inf-main-color-rgb), 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 28px;
    margin: 0 0 16px 0;
    color: #0f0f0f;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

.empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--inf-main-color) 0%, var(--inf-main-color) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--inf-main-color-rgb), 0.3);
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--inf-main-color-rgb), 0.5);
    background: linear-gradient(135deg, var(--inf-main-color) 0%, var(--inf-main-color) 100%);
    filter: brightness(1.1);
}

.empty-state .btn i {
    font-size: 16px;
    margin: 0;
    animation: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Swipe Indicator Inline - positioned same as play button */
.swipe-indicator-inline {
    position: absolute;
    top: 60%;
    /* Below play button which is at 50% */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    color: #fff;
    opacity: 0;
    animation: fadeInSwipe 0.5s ease 1s forwards, fadeOutSwipe 0.5s ease 3s forwards;
}

.swipe-indicator-inline span {
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swipe-indicator-inline i {
    font-size: 22px;
    animation: bounceArrow 1s ease-in-out infinite;
}

.swipe-indicator-inline.hide {
    display: none;
}

/* Hide old swipe indicator */
.swipe-indicator {
    display: none;
}

.swipe-indicator-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: 16px;
    color: #fff;
}

.swipe-indicator-content span {
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swipe-indicator-content i {
    font-size: 24px;
    animation: bounceArrow 1s ease-in-out infinite;
}

.swipe-indicator.hide {
    display: none;
}

@keyframes fadeInSwipe {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOutSwipe {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ===========================
   MOBILE MENU BUTTON & SIDEBAR
   =========================== */
/* Hide on desktop */
.mobile-menu-btn {
    display: none;
}

.mobile-sidebar-overlay {
    display: none;
}

/* Hide close button on desktop - only show on mobile/tablet */
.sidebar-close-btn {
    display: none;
    /* ✅ Artık hiç kullanılmıyor - kaldırıldı */
}

/* Mobile responsive */
@media (max-width: 991px) {

    /* Mobile Menu Button - same design as back button */
    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        z-index: 10002;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active {
        background: rgba(0, 0, 0, 0.7);
    }

    /* ✅ Menu button transforms to X when active */
    .mobile-menu-btn.active i:before {
        content: "\f00d";
        /* fa-times (X icon) */
    }

    /* Mobile Sidebar Overlay */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Sidebar - Hidden by default on mobile */
    .reels-sidebar-left {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .reels-sidebar-left.active {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {

    /* Hide navigation arrows on mobile - swipe is used instead */
    .reels-nav-arrows {
        display: none !important;
    }

    /* Mobile swipe indicator - smaller text */
    .swipe-indicator-inline {
        padding: 12px 16px;
        white-space: nowrap;
    }

    .swipe-indicator-inline span {
        font-size: 12px;
    }

    .swipe-indicator-inline i {
        font-size: 18px;
    }

    /* Mobile Back Button - top left corner */
    .mobile-back-btn {
        position: absolute;
        top: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        z-index: 100;
        transition: all 0.2s ease;
    }

    .mobile-back-btn:hover {
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
    }

    .mobile-back-btn i {
        font-size: 18px;
    }

    /* Hide Plyr controls on mobile - tap to play/pause instead */
    .plyr__controls {
        display: none !important;
    }

    /* Hide large play button overlay on mobile (tap to play instead) */
    .plyr__control--overlaid {
        display: none !important;
    }

    /* YouTube Style Mobile Play/Pause Button */
    .mobile-play-pause-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70px;
        height: 70px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 100;
        transition: all 0.3s ease;
    }

    .mobile-play-pause-btn i {
        color: #fff;
        font-size: 28px;
        margin-left: 4px;
        /* Play icon visual centering */
    }

    .mobile-play-pause-btn.playing i {
        margin-left: 0;
    }

    .mobile-play-pause-btn:active {
        transform: translate(-50%, -50%) scale(0.9);
    }

    .mobile-play-pause-btn.hide {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    /* Mobile Progress Bar (TikTok/YouTube Style) */
    .mobile-progress-bar {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        height: 40px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        gap: 10px;
        z-index: 50;
    }

    .progress-time {
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
        min-width: 40px;
    }

    .progress-time.current-time {
        text-align: right;
    }

    .progress-time.duration-time {
        text-align: left;
    }

    .progress-track {
        flex: 1;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        cursor: pointer;
        position: relative;
        touch-action: none;
        /* Important for touch drag */
    }

    .progress-fill {
        height: 100%;
        background: #fff;
        border-radius: 2px;
        width: 0%;
        pointer-events: none;
    }

    .progress-handle {
        position: absolute;
        top: 50%;
        left: 0%;
        transform: translate(-50%, -50%);
        width: 14px;
        height: 14px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .progress-track:active .progress-handle,
    .progress-track.dragging .progress-handle {
        opacity: 1;
    }

    .progress-track:active,
    .progress-track.dragging {
        height: 6px;
    }

    .progress-track:active .progress-fill,
    .progress-track.dragging .progress-fill {
        background: var(--inf-main-color);
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-state-content {
        padding: 40px 24px;
        border-radius: 20px;
    }

    .empty-state i {
        font-size: 64px;
    }

    .empty-state-icon::before {
        width: 120px;
        height: 120px;
    }

    .empty-state h3 {
        font-size: 24px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* ===========================
   LOADING INDICATOR
   =========================== */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    scroll-snap-align: start;
    color: #333;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--inf-main-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===========================
   COMMENTS DRAWER
   Completely rewritten from scratch
   =========================== */

.comments-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
}

.comments-drawer.active {
    right: 0;
}

.comments-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    position: relative;
    /* Ensure absolute children position relative to this panel */
}

/* Header */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.comments-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #212121;
}

.comment-total {
    color: #757575;
    font-weight: 400;
    margin-left: 6px;
}

.close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    font-size: 20px;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #212121;
}

/* Content */
/* Content */
.comments-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    .comments-content {
        padding-bottom: 160px;
        /* More space for fixed footer on mobile */
    }
}

.comments-list {
    padding: 0;
}

/* ===========================
   SINGLE COMMENT
   =========================== */

.comment-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
}

.comment-item:last-child {
    border-bottom: none;
}

/* Avatar + Details Row */
.comment-author-wrapper {
    display: flex;
    align-items: center;
    /* Vertically center (User requested "ortasından olsun") */
    gap: 12px;
    margin-bottom: 8px;
}

/* Avatar */
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 40px;
    color: #bdbdbd;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Avatar Fallback (Letter) */
.author-avatar.no-image {
    background: linear-gradient(135deg, var(--inf-main-color, #1976d2) 0%, #42a5f5 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
}

/* Author Details */
.author-details {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    white-space: nowrap;
}

.comment-time {
    font-size: 11px;
    color: #9e9e9e;
    white-space: nowrap;
}

/* Comment Text - Reduced Margin */
.comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: #424242;
    margin-left: 52px;
    margin-top: -15px;
    /* Pull text closer to name */
    word-break: break-word;
}

/* Actions - Reduced Margin */
.comment-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 52px;
    margin-top: 4px;
    position: relative;
    /* Ensure z-index to stay on top of any overlap */
    z-index: 5;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    border: none;
    background: transparent;
    color: #757575;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.comment-action-btn:hover {
    color: #212121;
    background: transparent;
}

.comment-action-btn i {
    font-size: 12px;
}

.like-comment-btn {
    display: none !important;
}

/* Pending Badge */
.comment-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    margin-left: 52px;
    margin-top: 4px;
    background: #fff3e0;
    color: #e65100;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.comment-pending-badge i {
    font-size: 11px;
}

.comment-item.comment-pending {
    background: #fffde7;
}

/* ===========================
   REPLIES
   =========================== */

/* Replies Wrapper with Connecting Line (YouTube Style) */
.replies-wrapper {
    margin-left: 56px;
    /* Increased slightly for better separation */
    margin-top: 2px;
    position: relative;
}

/* The Curved Line - Precisely aligned with Avatar Center */
.replies-wrapper::before {
    content: "";
    position: absolute;
    /* Parent Avatar is 36px wide (center 18px). 
       Wrapper margin is 56px. 
       56 - 18 = 38px offset needed. 
       Adjusting to -36px for visual balance with padding */
    left: -36px;
    top: -28px;
    /* Start from parent bottom area */
    width: 25px;
    height: 48px;
    /* Height to reach button center */
    border-left: 2px solid #e5e5e5;
    /* Lighter gray */
    border-bottom: 2px solid #e5e5e5;
    border-bottom-left-radius: 16px;
    /* Smooth curve */
    pointer-events: none;
    z-index: 0;
}

body.dark-mode .replies-wrapper::before {
    border-color: #3f3f3f;
}

/* Thread extension line when replies are visible (Optional, based on need) */
/* .replies-wrapper.has-replies::after { ... } */

.view-replies-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #065fd4;
    /* YouTube Blue */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 18px;
    position: relative;
    z-index: 1;
}

.view-replies-btn:hover {
    background: #def1ff;
}

.view-replies-btn i {
    font-size: 16px;
}

body.dark-mode .view-replies-btn {
    color: #3ea6ff;
}

body.dark-mode .view-replies-btn:hover {
    background: rgba(62, 166, 255, 0.2);
}

.view-replies-btn {
    margin-top: 8px;
    margin-bottom: 4px;
}

.like-comment-btn {
    display: none !important;
}

/* Inline Reply Indicator (Above Sticky Input) */
.replying-to-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #616161;

    /* Flush to edges (negate parent padding) */
    margin: -12px -16px 12px -16px;
    border-left: 3px solid #065fd4;
    /* Blue accent on left */
}

.replying-to-text {
    display: flex;
    align-items: center;
    gap: 4px;
}

.replying-to-text strong {
    color: #065fd4;
    /* Blue username */
    font-weight: 600;
}

.cancel-reply-btn {
    background: none;
    border: none;
    color: #757575;
    cursor: pointer;
    font-size: 16px;
    padding: 0 8px;
}

.cancel-reply-btn:hover {
    color: #000;
}

.view-replies-btn i {
    font-size: 12px;
    transition: transform 0.2s;
}

.replies-container {
    margin-top: 8px;
    padding-left: 12px;
    border-left: 2px solid #e0e0e0;
}

/* Reply Item */
.reply-item {
    padding: 12px 0;
}

.reply-item .author-avatar {
    width: 32px;
    height: 32px;
}

.reply-item .author-avatar i {
    font-size: 32px;
}

.reply-item .comment-text {
    margin-left: 44px;
}

.reply-item .author-avatar-small {
    width: 32px;
    height: 32px;
}

.reply-item .author-avatar-small i {
    font-size: 32px;
}

/* Reply Form */
.reply-form-wrapper {
    margin-top: 12px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.reply-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 60px;
    background: #fff;
}

.reply-textarea:focus {
    outline: none;
    border-color: var(--inf-main-color, #1976d2);
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.btn-cancel-reply,
.btn-submit-reply {
    padding: 8px 16px;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel-reply {
    background: #e0e0e0;
    color: #616161;
}

.btn-cancel-reply:hover {
    background: #bdbdbd;
}

.btn-submit-reply {
    background: var(--inf-main-color, #1976d2);
    color: #fff;
}

.btn-submit-reply:hover {
    opacity: 0.9;
}

/* ===========================
   EMPTY STATE
   =========================== */

.comments-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.comments-empty-state i {
    font-size: 48px;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.comments-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: #424242;
    margin: 0 0 4px;
}

.comments-empty-state span {
    font-size: 14px;
    color: #9e9e9e;
}

/* ===========================
   STICKY COMMENT FORM
   =========================== */

.comment-form-sticky {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 20;
    width: 100%;
    box-sizing: border-box;
}



/* Minimalist Login Prompt Alignment */
.login-prompt-wrapper-centered {
    align-items: center;
    /* Ensure vertical centering */
}

.comment-form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-input {
    flex-shrink: 0;
}

.user-avatar-input i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
}

@media (max-width: 768px) {
    .user-avatar-input i {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

.comment-input-inline {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--inf-main-color, #1976d2);
    /* Always active/visible border */
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 40px;
    max-height: 80px;
    background: #f5f5f5;

    /* Hide Scrollbar but allow scrolling */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.comment-input-inline::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.comment-input-inline:focus {
    outline: none;
    border-color: var(--inf-main-color, #1976d2);
    background: #fff;
}

.btn-send-comment {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--inf-main-color, #1976d2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-send-comment:hover {
    opacity: 0.9;
}

.btn-send-comment i {
    font-size: 16px;
}

.comment-char-counter {
    text-align: right;
    font-size: 11px;
    color: #9e9e9e;
    margin-top: 4px;
    padding-right: 50px;
}

/* ===========================
   LOGIN PROMPT
   =========================== */

.login-prompt-wrapper-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
}

.login-prompt-icon {
    font-size: 48px;
    color: #bdbdbd;
    margin-bottom: 8px;
}

.login-prompt-title {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 4px;
}



.btn-login-centered {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--inf-main-color, #1976d2);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

/* Minimalist Login Prompt for Mobile */
@media (max-width: 768px) {
    .login-prompt-wrapper-centered {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 16px;
        text-align: left;
        gap: 12px;
    }

    .login-prompt-icon {
        display: none;
    }

    .login-prompt-title {
        font-size: 14px;
        margin-bottom: 0;
    }

    .login-prompt-subtitle {
        display: none;
    }

    .btn-login-centered {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
        margin-left: auto;
    }
}

.btn-login-centered i {
    font-size: 14px;
}

/* ===========================
   RESPONSIVE (YouTube Shorts Style)
   =========================== */
@media (max-width: 768px) {

    /* Make everything black background on mobile */
    body.reels-page,
    .video-reels-container,
    .reels-scroll-container,
    .video-item,
    .video-player-wrapper {
        background: #000 !important;
    }

    /* Sidebar hidden off-screen by default on mobile, slides in when active */
    .reels-sidebar-left {
        display: flex;
        position: fixed !important;
        left: 0;
        top: 0;
        width: 280px;
        height: 100%;
        z-index: 10001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .reels-sidebar-left.active {
        transform: translateX(0);
    }

    /* Full width scroll container on mobile */
    .reels-scroll-container {
        margin-left: 0;
        width: 100%;
    }

    /* On mobile, don't shift container (drawer takes full screen) */
    .reels-scroll-container.shifted {
        margin-right: 0;
        width: 100%;
    }

    /* Make video fill entire screen on mobile (like fullscreen) */
    .video-player-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .video-player-wrapper video,
    .video-player-wrapper .plyr,
    .video-player-wrapper .plyr__video-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .video-item {
        position: relative;
        background: #000;
        overflow: hidden;
    }

    /* Ad wrapper - mobile full screen */
    .ad-wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #000 !important;
        /* ✅ Mobile'de video ile aynı siyah (fullscreen effect) */
    }

    .ad-content {
        max-width: 100%;
        /* Mobile'de tam genişlik */
        padding: 20px;
        /* Daha az padding */
    }


    /* Move nav arrows to bottom on mobile */
    .reels-nav-arrows {
        right: 16px;
        bottom: 120px;
        top: auto;
        transform: none;
    }

    /* On mobile, hide arrows completely when comments drawer is open */
    .reels-nav-arrows.shifted {
        right: -100px;
        /* Hide off-screen on mobile */
    }


    .reels-header {
        padding: 15px 0 50px 0;
    }

    .reels-title h1 {
        font-size: 20px;
    }

    .category-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .video-info {
        bottom: 60px;
        /* Above player controls */
        left: 16px;
        right: 80px;
    }

    .video-title {
        font-size: 15px;
    }

    .video-description {
        font-size: 13px;
    }

    .video-stats {
        font-size: 12px;
    }

    .video-actions {
        bottom: 70px;
        right: 12px;
        gap: 16px;
        /* Tüm butonlar arası eşit boşluk */
    }

    .action-btn {
        padding: 6px;
    }

    .action-btn i {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .action-count,
    .action-label {
        font-size: 11px;
    }

    .view-count-badge i {
        font-size: 22px;
    }

    .view-count-badge span {
        font-size: 11px;
    }

    .comments-drawer {
        width: 100%;
        right: -100%;
    }

    .comments-drawer.active {
        right: 0;
    }

    .comment-item {
        padding: 12px 16px;
    }

    .comment-text {
        margin-left: 48px;
    }

    .comment-actions-bar {
        margin-left: 48px;
    }

    .comment-pending-badge {
        margin-left: 48px;
    }

    .replies-wrapper {
        margin-left: 55px;
    }

    .author-avatar {
        width: 36px;
        height: 36px;
    }

    .author-avatar i {
        font-size: 24px;
    }
}

.category-selector {
    top: 16px;
    left: 16px;
}

.category-trigger {
    padding: 8px 14px;
    font-size: 13px;
}


@media (min-width: 1024px) {
    .video-player-wrapper {
        max-width: 480px;
    }
}

/* ===========================
   DARK MODE SUPPORT
   =========================== */

/* Main Container Dark Mode */
.dark-mode .video-reels-container {
    background: #000;
}

/* Sidebar Dark Mode */
.dark-mode .reels-sidebar-left {
    background: #121212;
    border-right-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .sidebar-logo {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .menu-header {
    color: #e0e0e0;
}

.dark-mode .menu-section-title {
    color: #9e9e9e;
}

.dark-mode .menu-item {
    color: #e0e0e0;
}

.dark-mode .menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.dark-mode .menu-item i {
    color: #9e9e9e;
}

.dark-mode .menu-item:hover i {
    color: var(--inf-main-color);
}

.dark-mode .menu-item.active {
    background: rgba(var(--inf-main-color-rgb), 0.2);
}

.dark-mode .sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .sidebar-footer p {
    color: #666;
}

.dark-mode .sidebar-footer a {
    color: var(--inf-main-color);
}

.dark-mode .sidebar-footer a:hover {
    color: var(--inf-main-color);
    filter: brightness(1.2);
}


/* Navigation Arrows Dark Mode */
.dark-mode .nav-arrow {
    background: rgba(18, 18, 18, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-arrow:hover {
    background: rgba(var(--inf-main-color-rgb), 0.9);
}

/* Video Area Dark Mode */
.dark-mode .video-item {
    background: #000;
}

.dark-mode .video-player-wrapper {
    background: #000;
}

.dark-mode .video-player,
.dark-mode .plyr__video-wrapper,
.dark-mode .plyr--video {
    background: #000;
}

.dark-mode .plyr__controls {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Empty State Dark Mode */
.dark-mode .empty-state {
    background: radial-gradient(circle at center, rgba(var(--inf-main-color-rgb), 0.15) 0%, rgba(18, 18, 18, 0.98) 70%);
    color: #e0e0e0;
}

.dark-mode .empty-state-content {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .empty-state h3 {
    color: #e0e0e0;
}

.dark-mode .empty-state p {
    color: rgba(255, 255, 255, 0.6);
}

/* Loading Indicator Dark Mode */
.dark-mode .loading-indicator {
    color: #fff;
}

.dark-mode .spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--inf-main-color);
}

/* Comments Panel Dark Mode (Enhanced) */
.dark-mode .comments-drawer {
    background: #0f0f0f;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}

body.dark-mode .comments-panel {
    background: #0f0f0f;
    color: #fff;
}

body.dark-mode .comments-header {
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .comments-header h3 {
    color: #f1f1f1;
}

.dark-mode .comment-total {
    color: #aaaaaa;
}

.dark-mode .close-btn {
    color: #aaaaaa;
}

.dark-mode .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .close-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Comments Content Dark Mode */
.dark-mode .comments-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.dark-mode .comments-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Comment Item Dark Mode */
body.dark-mode .comment-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .author-avatar {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

body.dark-mode .author-avatar i {
    color: #606060;
}

body.dark-mode .author-name {
    color: #f1f1f1;
}

body.dark-mode .comment-time {
    color: #717171;
}

body.dark-mode .comment-text {
    color: #e8e8e8;
}

/* Comment Actions Dark Mode */
body.dark-mode .comment-action-btn {
    color: #aaaaaa;
}

body.dark-mode .comment-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Pending Badge Dark Mode */
body.dark-mode .comment-pending-badge {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    color: #ffb74d;
    border-color: rgba(255, 152, 0, 0.2);
}

body.dark-mode .comment-item.comment-pending {
    background: rgba(255, 152, 0, 0.03);
}

/* Replies Dark Mode */
body.dark-mode .replies-wrapper {
    border-left-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .reply-form-wrapper {
    background: #1a1a1a;
}

body.dark-mode .reply-textarea {
    background: #0f0f0f;
    border-color: #333;
    color: #f1f1f1;
}

body.dark-mode .reply-textarea:focus {
    border-color: var(--inf-main-color);
    box-shadow: 0 0 0 3px rgba(var(--inf-main-color-rgb), 0.15);
}

body.dark-mode .reply-textarea::placeholder {
    color: #606060;
}

body.dark-mode .btn-cancel-reply {
    background: #2a2a2a;
    color: #aaaaaa;
}

body.dark-mode .btn-cancel-reply:hover {
    background: #333;
    color: #ffffff;
}

/* Empty State Dark Mode */
body.dark-mode .comments-empty-state {
    color: #717171;
}

body.dark-mode .comments-empty-state i {
    color: #333;
}

body.dark-mode .comments-empty-state p {
    color: #e8e8e8;
}

body.dark-mode .comments-empty-state span {
    color: #717171;
}

/* Sticky Form Dark Mode */
body.dark-mode .comment-form-sticky {
    background: #0f0f0f;
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .comment-input-inline {
    background: #1a1a1a;
    border-color: #333;
    color: #f1f1f1;
}

body.dark-mode .comment-input-inline:focus {
    border-color: var(--inf-main-color);
    background: #0f0f0f;
    box-shadow: 0 0 0 3px rgba(var(--inf-main-color-rgb), 0.12);
}

body.dark-mode .comment-input-inline::placeholder {
    color: #606060;
}

body.dark-mode .comment-char-counter {
    color: #606060;
}

/* Login Prompt Dark Mode */
body.dark-mode .login-prompt-wrapper-centered {
    background: #0f0f0f;
}

body.dark-mode .login-prompt-icon {
    color: #444;
}

body.dark-mode .login-prompt-title {
    color: #f1f1f1;
}

body.dark-mode .login-prompt-subtitle {
    color: #717171;
}

/* ===========================
   AD ITEM (Full Screen Ad Card)
   =========================== */
.video-item.ad-item {
    position: relative;
    /* Ad wrapper için position context */
    background: #fafafa;
    /* ✅ Video ile aynı gri arka plan */
}

.ad-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    /* ✅ Video ile aynı gri arka plan */
    position: absolute;
    /* Tam kaplama */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    /* Video üzerinde */
}

.ad-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 728px;
    /* Reklam için optimal genişlik */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 120px;
    /* Top padding artırıldı, bottom padding countdown için */
    background: transparent;
    /* Şeffaf - beyaz arka plan zaten var */
    border-radius: 0;
    box-shadow: none;
}

.ad-badge {
    position: absolute;
    top: 15px;
    /* ✅ 5px daha yukarı (20px → 15px) */
    left: 50%;
    /* ✅ Ortaya hizala */
    transform: translateX(-50%);
    /* ✅ Tam ortala */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 20;
    /* Reklam üzerinde görünsün */
}

.ad-desktop {
    display: block;
    max-width: 100%;
    text-align: center;
}

.ad-mobile {
    display: none;
    max-width: 100%;
    text-align: center;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
}

.ad-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ad-placeholder p {
    font-size: 14px;
    margin: 0;
}

.ad-swipe-hint {
    position: absolute;
    bottom: 40px;
    /* Daha yukarıda konumlandırıldı */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    /* Beyaz arka plan için koyu renk */
    animation: none;
    /* Bounce animasyonu kaldırıldı - kasma önleme */
}

.ad-swipe-hint span {
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffffff;
    /* Beyaz yazı - okunabilir */
    background: rgba(0, 0, 0, 0.7);
    /* Koyu arka plan - beyaz yazı için kontrast */
    padding: 10px 28px;
    /* Daha geniş - tek satır için */
    border-radius: 25px;
    white-space: nowrap;
    /* Tek satırda kal - wrap olmasın */
}

.ad-swipe-hint i {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
    /* Koyu renk - beyaz arka planda görünsün */
    animation: bounceArrowSmooth 1.5s ease-in-out infinite;
    /* Daha yumuşak animasyon */
}

@keyframes bounceArrowSmooth {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.6;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Dark Mode Ad Styles */
body.dark-mode .video-item.ad-item {
    background: #000;
    /* ✅ Video ile aynı siyah arka plan */
}

body.dark-mode .ad-wrapper {
    background: #000;
    /* ✅ Video ile aynı siyah arka plan */
}

body.dark-mode .ad-content {
    background: transparent;
    /* Dark mode için şeffaf */
}

body.dark-mode .ad-badge {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .ad-placeholder {
    color: #666;
}

body.dark-mode .ad-swipe-hint {
    color: #e0e0e0;
    /* Dark mode için açık renk */
}

body.dark-mode .ad-swipe-hint i {
    color: rgba(255, 255, 255, 0.7);
    /* Dark mode'da beyaz ok - dark arka planda görünsün */
}

body.dark-mode .ad-swipe-hint span {
    background: rgba(0, 0, 0, 0.8);
    /* Dark mode için koyu arka plan */
    color: #ffffff;
    /* Beyaz yazı */
}

/* Mobile: Show mobile ad, hide desktop */
@media (max-width: 991px) {
    .ad-desktop {
        display: none;
    }

    .ad-mobile {
        display: block;
    }

    .ad-badge {
        display: none;
    }

    .ad-content {
        max-width: 100%;
        padding: 60px 16px 20px;
        /* Mobile padding reduced */
        margin: 0;
        border-radius: 0;
    }

    .ad-swipe-hint {
        bottom: 30px;
        /* Mobile'de biraz daha yukarı */
        padding: 12px 20px;
        border-radius: 40px;
    }

    .ad-swipe-hint span {
        font-size: 13px;
        padding: 8px 20px;
        /* Mobilde de geniş - tek satır */
        white-space: nowrap;
        /* Mobilde de wrap olmasın */
    }

    .ad-swipe-hint i {
        font-size: 18px;
    }
}

/* ==== VIDEO DESCRIPTION TOGGLE ==== */
.video-desc-wrapper {
    margin: 8px 0;
}

.video-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Default state: 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 42px;
    /* 14px * 1.5 * 2 lines */
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.video-description.expanded {
    -webkit-line-clamp: 999;
    line-clamp: 999;
    max-height: 40vh;
    /* Smoothly transitions up to 40vh */
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.video-description.expanded::-webkit-scrollbar {
    width: 4px;
}

.video-description.expanded::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.desc-toggle-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    margin-top: 4px;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

.desc-toggle-btn:hover {
    opacity: 1;
    text-decoration: underline;
}