/* ========== VIDEO CONTAINER ========== */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 0 !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    overflow: hidden;
    background: #000;
    z-index: 1;
    border-radius: var(--radius-lg, 12px);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.video-container iframe,
.video-container video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    object-fit: contain;
}

/* Fluid Player specific overrides */
.video-container .fluid_video_wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.video-container .fluid_video_wrapper video {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .video-container {
        border-radius: 0 !important;
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
        width: calc(100% + 1rem) !important;
    }
}

/* ========== VIDEO SUGGESTIONS OVERLAY ========== */
.video-suggestions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-suggestions-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-suggestions-overlay.hidden {
    display: none;
}

.suggestions-content {
    width: 100%;
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.suggestions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.suggestions-header h3 {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.resume-btn i {
    font-size: 0.6rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
}

.suggestion-card {
    display: flex;
    flex-direction: column;
    background: rgba(31, 41, 55, 0.9);
    border-radius: 0.375rem;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-card:nth-child(n+5) {
    display: none;
}

.suggestion-thumb {
    position: relative;
    padding-bottom: 56.25%;
    background: #374151;
    overflow: hidden;
    flex-shrink: 0;
}

.suggestion-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-duration {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.6rem;
    font-weight: 600;
}

.suggestion-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    background: rgba(59, 130, 246, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-thumb .play-icon i {
    color: #fff;
    font-size: 0.7rem;
    margin-left: 2px;
}

.suggestion-title {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 500;
    margin: 0;
    padding: 0.35rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.suggestion-views {
    display: block;
    color: #9CA3AF;
    font-size: 0.55rem;
    padding: 0 0.35rem 0.35rem;
}

.suggestion-views i {
    margin-right: 0.2rem;
    font-size: 0.5rem;
}

/* Suggestions responsive */
@media (min-width: 540px) {
    .suggestions-content {
        padding: 0.75rem;
    }
    .suggestions-header h3 {
        font-size: 0.875rem;
    }
    .resume-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .suggestions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .suggestion-card:nth-child(3) {
        display: flex;
    }
    .suggestion-title {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
    .suggestion-views {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    .suggestions-content {
        padding: 1rem;
        max-width: 95%;
        margin: 0 auto;
        height: auto;
    }
    .suggestions-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    }
    .suggestions-header h3 {
        font-size: 1rem;
    }
    .resume-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    .resume-btn:hover {
        transform: scale(1.05);
    }
    .suggestions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    .suggestion-card:nth-child(4) {
        display: flex;
    }
    .suggestion-card {
        border-radius: 0.5rem;
        transition: all 0.25s ease;
    }
    .suggestion-card:hover {
        transform: translateY(-4px);
        border-color: rgba(59, 130, 246, 0.5);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
    .suggestion-card:hover .suggestion-thumb img {
        transform: scale(1.05);
    }
    .suggestion-thumb img {
        transition: transform 0.3s ease;
    }
    .suggestion-thumb .play-icon {
        width: 2.5rem;
        height: 2.5rem;
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    .suggestion-card:hover .play-icon {
        opacity: 1;
    }
    .suggestion-title {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    .suggestion-views {
        font-size: 0.65rem;
        padding: 0 0.5rem 0.5rem;
    }
}

@media (min-width: 1024px) {
    .suggestions-content {
        max-width: 90%;
        padding: 1.25rem;
    }
    .suggestions-header h3 {
        font-size: 1.125rem;
    }
}

.video-suggestions-overlay.ended .resume-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

@keyframes overlay-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-suggestions-overlay.active .suggestions-content {
    animation: overlay-fade-in 0.25s ease forwards;
}

/* ========== ANIMATIONS ========== */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.3s ease-out;
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* ========== REPORT MODAL ========== */
@media (max-width: 640px) {
    .animate-slide-up {
        animation: slide-up 0.2s ease-out;
    }

    #reportModal > div {
        max-width: 100%;
        margin: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

#reportModal > div {
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

#reportModal > div::-webkit-scrollbar {
    width: 8px;
}

#reportModal > div::-webkit-scrollbar-track {
    background: #1f2937;
}

#reportModal > div::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

#reportModal > div::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ========== MISC ========== */
.video-wrapper {
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

input[type="radio"]:checked + div .font-medium {
    color: #3b82f6;
}

.viewed-indicator {
    transition: all 0.3s ease;
}

#copyLinkBtn {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#reportForm input[type="radio"] {
    accent-color: #3b82f6;
}

#reportForm label {
    transition: all 0.2s ease;
}

#reportForm label:hover {
    transform: translateX(2px);
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.video-card {
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-2px);
}

.tag-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* ========== WATCH PAGE - DESIGN SYSTEM V2.0 ========== */

/* Watch Page Container */
.watch-main {
    padding-top: 8px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    animation: fadeIn 0.4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@media (min-width: 640px) {
    .watch-main {
        padding-top: 16px;
        padding-bottom: 24px;
    }
}

/* Video Player Wrapper - ensures proper sizing */
.bg-black.rounded-lg.overflow-hidden.mb-4 {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Ensure the main content column doesn't overflow */
.lg\:col-span-2 {
    min-width: 0;
    max-width: 100%;
}

/* Breadcrumbs - sober nav above the H1 */
.watch-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.4;
    min-width: 0;
}

.watch-breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s ease;
}

.watch-breadcrumbs a:hover {
    color: #fff;
}

.watch-breadcrumbs-sep {
    color: #4b5563;
    user-select: none;
}

.watch-breadcrumbs-here {
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Video Title - Now positioned below the player */
.watch-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-top: 12px;
    margin-bottom: 12px;
    animation: fadeInUp 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) 0.1s both;
}

@media (min-width: 640px) {
    .watch-title {
        font-size: 1.25rem;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .watch-title {
        font-size: 1.5rem;
    }
}

/* Video Info Card */
.watch-info-card {
    background: var(--color-glass, rgba(17, 17, 17, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 12px);
    padding: 12px;
    margin-bottom: 16px;
    animation: fadeInUp 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) 0.2s both;
}

@media (min-width: 640px) {
    .watch-info-card {
        padding: 16px;
        border-radius: var(--radius-xl, 16px);
    }
}

@media (min-width: 768px) {
    .watch-info-card {
        padding: 20px 24px;
    }
}

/* Stats Row */
.watch-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .watch-stats {
        font-size: 0.875rem;
        gap: 16px;
    }
}

.watch-stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.watch-stats-item:hover {
    color: var(--color-text, #fff);
}

.watch-stats-item i {
    color: var(--color-accent, #3b82f6);
    font-size: 0.9em;
}

.watch-stats-item strong {
    font-weight: 600;
    color: var(--color-text, #fff);
}

/* Action Buttons Container */
.watch-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 639px) {
    .watch-actions {
        display: none;
    }
}

/* Mobile Actions Grid */
.watch-actions-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

@media (min-width: 640px) {
    .watch-actions-mobile {
        display: none;
    }
}

/* Action Button Base */
.watch-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--color-bg-tertiary, #1a1a1a);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 10px);
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    -webkit-tap-highlight-color: transparent;
}

.watch-action-btn:hover {
    background: var(--color-bg-hover, #2a2a2a);
    color: var(--color-text, #fff);
    border-color: var(--color-border-hover, rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
}

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

.watch-action-btn i {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

/* Favorite Button */
.watch-action-btn--favorite:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--color-accent, #3b82f6);
}

.watch-action-btn--favorite:hover i {
    transform: scale(1.2);
}

.watch-action-btn--favorite.is-active {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--color-accent, #3b82f6);
    color: var(--color-accent, #3b82f6);
}

.watch-action-btn--favorite.is-active i {
    animation: heartPulse 0.5s ease;
}

/* Copy Link Button */
.watch-action-btn--copy:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.4);
    color: #a78bfa;
}

.watch-action-btn--copy.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

/* Embed Button */
.watch-action-btn--embed:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

/* Report Button */
.watch-action-btn--report:hover {
    background: rgba(251, 146, 60, 0.15);
    border-color: rgba(251, 146, 60, 0.4);
    color: #3b82f6;
}

/* Mobile Action Button */
.watch-action-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--color-bg-tertiary, #1a1a1a);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 10px);
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.watch-action-btn-mobile i {
    color: var(--color-accent, #3b82f6);
    font-size: 0.9rem;
}

.watch-action-btn-mobile:active {
    transform: scale(0.95);
    background: var(--color-bg-hover, #2a2a2a);
}

/* Section Divider */
.watch-section-divider {
    border: none;
    border-top: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    margin: 16px 0;
}

/* Info Section */
.watch-info-section {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    animation: fadeIn 0.4s ease 0.3s both;
}

.watch-info-section:last-child {
    border-bottom: none;
}

/* Section Label */
.watch-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-tertiary, #666);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.watch-section-label i {
    font-size: 0.85rem;
}

.watch-section-label--studio i {
    color: #3b82f6;
}

.watch-section-label--pornstars i {
    color: #f472b6;
}

.watch-section-label--categories i {
    color: var(--color-accent, #3b82f6);
}

.watch-section-label--tags i {
    color: #a78bfa;
}

/* Chip/Pill Base */
.watch-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--color-bg-tertiary, #1a1a1a);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-full, 9999px);
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    animation: scaleIn 0.3s var(--ease-out-expo) both;
}

.watch-chip:hover {
    background: var(--color-bg-hover, #2a2a2a);
    border-color: var(--color-border-hover, rgba(255, 255, 255, 0.15));
    color: var(--color-text, #fff);
    transform: translateY(-2px);
}

/* Studio Chip */
.watch-chip--studio {
    padding: 6px 12px;
    border-radius: var(--radius-md, 10px);
}

.watch-chip--studio:hover {
    border-color: rgba(251, 146, 60, 0.4);
    color: #3b82f6;
}

.watch-chip--studio .watch-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-secondary, #111);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.watch-chip--studio .watch-chip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-chip--studio .watch-chip-avatar i {
    font-size: 0.625rem;
    color: var(--color-text-tertiary, #666);
}

/* Pornstar Chip */
.watch-chip--pornstar {
    padding: 6px 12px;
    border-radius: var(--radius-md, 10px);
}

.watch-chip--pornstar:hover {
    border-color: rgba(244, 114, 182, 0.4);
    color: #f472b6;
}

.watch-chip--pornstar .watch-chip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-secondary, #111);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.watch-chip--pornstar .watch-chip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category Chip */
.watch-chip--category:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--color-accent, #3b82f6);
}

/* Tag Chip */
.watch-chip--tag {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm, 8px);
}

.watch-chip--tag:hover {
    border-color: rgba(167, 139, 250, 0.4);
    color: #a78bfa;
}

/* Show More Button */
.watch-show-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md, 10px);
    color: var(--color-accent, #3b82f6);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.watch-show-more:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.watch-show-more i {
    font-size: 0.625rem;
    transition: transform 0.2s ease;
}

.watch-show-more:hover i {
    transform: rotate(90deg);
}

/* Chips Container */
.watch-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Embed Popup */
.watch-embed-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background: var(--color-glass, rgba(17, 17, 17, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 12px;
    z-index: 100;
    animation: scaleIn 0.2s var(--ease-out-expo) both;
}

.watch-embed-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--color-glass, rgba(17, 17, 17, 0.95)) transparent transparent transparent;
}

.watch-embed-input {
    flex: 1;
    padding: 8px 12px;
    background: var(--color-bg-secondary, #111);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-sm, 8px);
    color: var(--color-text-secondary, #a0a0a0);
    font-family: monospace;
    font-size: 0.625rem;
}

.watch-embed-copy-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #3b82f6, #3b82f6);
    border: none;
    border-radius: var(--radius-sm, 8px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-embed-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Related Videos Section */
.watch-related-section {
    margin-top: 24px;
    animation: fadeInUp 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) 0.4s both;
}

/* More videos grid at bottom - full width section */
#more-videos-section {
    background: var(--color-bg-secondary, #111);
    border-radius: var(--radius-xl, 16px);
    margin-top: 32px;
}

#more-videos-grid.yt-video-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

@media (min-width: 640px) {
    #more-videos-grid.yt-video-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media (min-width: 1024px) {
    #more-videos-grid.yt-video-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1280px) {
    #more-videos-grid.yt-video-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.watch-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.watch-related-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text, #fff);
    display: flex;
    align-items: center;
    gap: 10px;
}

.watch-related-title i {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

/* Specific icon styles */
.watch-related-title i.fa-sparkles {
    background: linear-gradient(135deg, #2563eb 0%, #ffb347 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.watch-related-title i.fa-wand-magic-sparkles {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar for desktop */
.watch-sidebar {
    animation: fadeInUp 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) 0.3s both;
}

/* ========== NEW SIDEBAR SECTIONS ========== */

/* Sidebar Section Container */
.watch-sidebar-section {
    background: var(--color-glass, rgba(17, 17, 17, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 12px);
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeInUp 0.4s var(--ease-out-expo) both;
}

.watch-sidebar-section:nth-child(1) { animation-delay: 0.1s; }
.watch-sidebar-section:nth-child(2) { animation-delay: 0.2s; }
.watch-sidebar-section:nth-child(3) { animation-delay: 0.3s; }

/* Section Header */
.watch-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    gap: 8px;
}

/* Section Title */
.watch-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text, #fff);
    margin: 0;
    flex: 1;
    min-width: 0;
}

.watch-sidebar-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-sidebar-title strong {
    color: var(--color-accent, #3b82f6);
}

.watch-sidebar-title i {
    font-size: 1rem;
    flex-shrink: 0;
}

.watch-sidebar-title i.fa-heart {
    color: #f472b6;
}

.watch-sidebar-title i.fa-clapperboard {
    color: #3b82f6;
}

.watch-sidebar-title i.fa-sparkles {
    background: linear-gradient(135deg, #2563eb 0%, #ffb347 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* "See All" Link */
.watch-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-accent, #3b82f6);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(59, 130, 246, 0.1);
}

.watch-sidebar-link:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(2px);
}

.watch-sidebar-link i {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.watch-sidebar-link:hover i {
    transform: translateX(3px);
}

/* Video Grid - 2x2 layout */
.watch-sidebar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Individual Video Card */
.watch-sidebar-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    background: var(--color-bg-tertiary, #1a1a1a);
    transition: all 0.25s var(--ease-out-expo);
}

.watch-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.watch-sidebar-card:hover .watch-sidebar-thumb img {
    transform: scale(1.08);
}

/* Thumbnail Container */
.watch-sidebar-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-secondary, #111);
}

.watch-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

/* Duration Badge */
.watch-sidebar-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Video Info */
.watch-sidebar-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.watch-sidebar-card-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text, #fff);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s ease;
}

.watch-sidebar-card:hover .watch-sidebar-card-title {
    color: var(--color-accent, #3b82f6);
}

.watch-sidebar-views {
    font-size: 0.6rem;
    color: var(--color-text-tertiary, #666);
    display: flex;
    align-items: center;
    gap: 4px;
}

.watch-sidebar-views i {
    font-size: 0.55rem;
    color: var(--color-accent, #3b82f6);
    opacity: 0.7;
}

/* Load More Button */
.watch-sidebar-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: var(--color-bg-tertiary, #1a1a1a);
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-md, 8px);
    color: var(--color-text-secondary, #a0a0a0);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.watch-sidebar-load-more:hover {
    background: var(--color-bg-hover, #2a2a2a);
    border-color: var(--color-accent, #3b82f6);
    color: var(--color-accent, #3b82f6);
}

.watch-sidebar-load-more:active {
    transform: scale(0.98);
}

.watch-sidebar-load-more i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.watch-sidebar-load-more:hover i {
    transform: rotate(90deg);
}

.watch-sidebar-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.watch-sidebar-load-more.loading i {
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (min-width: 1024px) and (max-width: 1279px) {
    .watch-sidebar-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .watch-sidebar-card {
        flex-direction: row;
    }

    .watch-sidebar-thumb {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: 16 / 9;
    }

    .watch-sidebar-info {
        padding: 6px 10px;
        justify-content: center;
    }

    .watch-sidebar-card-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}

@media (min-width: 1536px) {
    .watch-sidebar-section {
        padding: 18px;
    }

    .watch-sidebar-title {
        font-size: 0.9rem;
    }

    .watch-sidebar-card-title {
        font-size: 0.75rem;
    }
}

/* ========== MOBILE SECTIONS (Horizontal Scroll) ========== */
.watch-mobile-sections {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.watch-mobile-section {
    background: var(--color-glass, rgba(17, 17, 17, 0.85));
    border-radius: var(--radius-lg, 12px);
    padding: 14px;
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.watch-mobile-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}

.watch-mobile-section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text, #fff);
    margin: 0;
}

.watch-mobile-section-header h3 strong {
    color: var(--color-accent, #3b82f6);
}

.watch-mobile-section-header h3 i {
    font-size: 1rem;
}

.watch-mobile-section-header h3 i.fa-heart {
    color: #f472b6;
}

.watch-mobile-section-header h3 i.fa-clapperboard {
    color: #3b82f6;
}

.watch-mobile-section-header h3 i.fa-sparkles {
    background: linear-gradient(135deg, #2563eb 0%, #ffb347 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.watch-mobile-see-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent, #3b82f6);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: var(--radius-sm, 6px);
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.2s ease;
}

.watch-mobile-see-all:active {
    transform: scale(0.95);
    background: rgba(59, 130, 246, 0.2);
}

.watch-mobile-see-all i {
    font-size: 0.6rem;
}

/* Horizontal Scroll Container */
.watch-mobile-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px;
    margin: 0 -4px;
}

.watch-mobile-scroll::-webkit-scrollbar {
    display: none;
}

/* Individual Mobile Card */
.watch-mobile-card {
    flex-shrink: 0;
    width: 140px;
    scroll-snap-align: start;
    text-decoration: none;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    background: var(--color-bg-tertiary, #1a1a1a);
    transition: transform 0.2s ease;
}

.watch-mobile-card:active {
    transform: scale(0.97);
}

.watch-mobile-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-secondary, #111);
}

.watch-mobile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watch-mobile-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 600;
}

.watch-mobile-title {
    padding: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text, #fff);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Larger mobile screens */
@media (min-width: 480px) {
    .watch-mobile-card {
        width: 160px;
    }

    .watch-mobile-title {
        font-size: 0.75rem;
    }
}

@media (min-width: 640px) {
    .watch-mobile-card {
        width: 180px;
    }

    .watch-mobile-section {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

/* Stagger animation for chips */
.watch-chip:nth-child(1) { animation-delay: 0.05s; }
.watch-chip:nth-child(2) { animation-delay: 0.1s; }
.watch-chip:nth-child(3) { animation-delay: 0.15s; }
.watch-chip:nth-child(4) { animation-delay: 0.2s; }
.watch-chip:nth-child(5) { animation-delay: 0.25s; }
.watch-chip:nth-child(6) { animation-delay: 0.3s; }
.watch-chip:nth-child(7) { animation-delay: 0.35s; }
.watch-chip:nth-child(8) { animation-delay: 0.4s; }
.watch-chip:nth-child(9) { animation-delay: 0.45s; }
.watch-chip:nth-child(10) { animation-delay: 0.5s; }

/* ============================================================
   RETENTION LAYOUT - sticky sidebar + mobile related ordering
   ============================================================ */
/* Desktop: keep the up-next sidebar in view while scrolling */
@media (min-width: 1024px) {
    .watch-sidebar {
        position: sticky;
        top: 68px;            /* 56px fixed header + 12px gap */
        align-self: start;
    }
}
/* Mobile/tablet: lift related videos above description & comments.
   Unmarked children (description, comments) default to order:4. */
@media (max-width: 1023px) {
    .wm-col { display: flex; flex-direction: column; }
    .wm-col > * { order: 4; }
    .wm-col > .wm-player { order: 1; }
    .wm-col > .wm-meta { order: 2; }
    .wm-col > .watch-mobile-sections { order: 3; }
}

/* ===== Autoplay-next countdown bar ===== */
.autonext-bar{display:inline-flex;align-items:center;gap:12px;margin-left:12px;padding:6px 12px;border-radius:10px;background:rgba(59,130,246,.14);border:1px solid rgba(59,130,246,.45);font-size:.85rem;color:#fff}
.autonext-label{white-space:nowrap}
.autonext-count{font-variant-numeric:tabular-nums;color:#60a5fa;font-weight:700;min-width:1ch;display:inline-block;text-align:center}
.autonext-cancel{padding:3px 10px;border-radius:7px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:.78rem;cursor:pointer;transition:background .15s}
.autonext-cancel:hover{background:rgba(255,255,255,.2)}
@media(max-width:639px){.autonext-bar{width:100%;margin:10px 0 0;justify-content:space-between}}
