:root {
    --color-primary: #3ea6ff;
    --color-secondary: #065fd4;
    --color-bg-primary: #0f0f0f;
    --color-bg-secondary: #1f1f1f;
    --color-bg-tertiary: #272727;
    --color-bg-hover: #3f3f3f;
    --color-text-primary: #ffffff;
    --color-text-secondary: #aaaaaa;
    --color-border: #3f3f3f;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 72px;
    --navbar-height: 56px;
}

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

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: "Roboto", "Arial", sans-serif;
    overflow-x: hidden;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--navbar-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background-color: var(--color-bg-primary);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

.sidebar-content {
    padding: 12px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.sidebar-item:hover {
    background-color: var(--color-bg-tertiary);
}

.sidebar-item.active {
    background-color: var(--color-bg-tertiary);
    color: var(--color-primary);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 12px 0;
}

.sidebar-section-title {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop sidebar collapsed state */
@media (min-width: 769px) {
    .sidebar-collapsed {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-collapsed .sidebar-item span,
    .sidebar-collapsed .sidebar-section-title {
        display: none;
    }

    .sidebar-collapsed .sidebar-item {
        justify-content: center;
        padding: 10px;
    }
}

/* Mobile sidebar - ALWAYS hidden by default */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%) !important;
        box-shadow: none;
        width: var(--sidebar-width);
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    }
}

/* ========== MAIN WRAPPER ========== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop only - adjust margin when collapsed */
@media (min-width: 769px) {
    .sidebar-collapsed ~ .main-wrapper {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Mobile - no margin ever */
@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0 !important;
    }
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
    z-index: 50;
}

.navbar-content {
    max-width: 100%;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: var(--color-bg-tertiary);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-dev {
    color: var(--color-primary);
}

.logo-uefn {
    color: var(--color-text-primary);
}

.logo-large {
    font-size: 32px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== SEARCH BAR ========== */
.search-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    width: 100%;
    margin: 0 16px;
}

.search-input {
    flex: 1;
    padding: 8px 16px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 20px 0 0 20px;
    color: var(--color-text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--color-primary);
}

.search-button {
    padding: 8px 20px;
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-left: none;
    border-radius: 0 20px 20px 0;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: var(--color-bg-hover);
}

/* ========== CONTENT ========== */
.content {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

.content-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 24px 16px;
}

.content-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 16px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
}

/* ========== VIDEO GRID ========== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.video-card {
    cursor: pointer;
    transition: transform 0.2s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }
.video-card:nth-child(7) { animation-delay: 0.35s; }
.video-card:nth-child(8) { animation-delay: 0.4s; }

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

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--color-bg-tertiary);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info {
    margin-top: 12px;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.video-card:hover .video-title {
    color: var(--color-primary);
}

.video-meta {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.video-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ========== VIDEO PLAYER ========== */
.video-player-container {
    max-width: 1280px;
    margin: 0 auto;
}

.video-embed {
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
}

.video-details {
    margin-top: 16px;
}

.video-details-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.video-details-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.video-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary);
}

.video-description {
    margin-top: 16px;
    padding: 16px;
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
}

.video-description p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.theater-mode {
    width: 100%;
    height: 80vh;
}
.video-embed iframe {
    width: 100%;
    height: 100%;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    border: 1px solid var(--color-border);
    transition: background-color 0.2s, transform 0.1s;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--color-bg-tertiary);
}

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

/* ========== PROFILE ========== */
.profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background-color: transparent;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-button:hover {
    background-color: var(--color-bg-tertiary);
}

.profile-pic-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg-tertiary);
}

.profile-pic-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg-tertiary);
}

.profile-modal {
    position: fixed;
    top: 60px;
    right: 16px;
    z-index: 100;
    animation: slideDown 0.2s ease;
}

.profile-modal-content {
    min-width: 280px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.profile-divider {
    height: 1px;
    background-color: var(--color-border);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--color-text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.profile-menu-item:hover {
    background-color: var(--color-bg-tertiary);
}

.profile-edit-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
}

.profile-pic-preview-container {
    position: relative;
    display: inline-block;
}

.profile-pic-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg-tertiary);
    border: 3px solid var(--color-border);
}

.profile-pic-edit-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 3px solid var(--color-bg-primary);
}

.profile-pic-edit-button:hover {
    background-color: var(--color-secondary);
}

/* ========== MODALS ========== */
.confirm-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.2s ease;
}

.confirm-modal-content {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.2s ease;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 35;
    animation: fadeIn 0.2s ease;
}

/* ========== AUTH PAGES ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background-color: var(--color-bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-bg-tertiary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 16px;
    transition: border-color 0.2s, background-color 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg-primary);
}

/* ========== STATUS MESSAGES ========== */
.error-message {
    padding: 12px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 14px;
    animation: shake 0.3s ease;
}

.status-message-success {
    padding: 12px;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 14px;
}

.status-message-error {
    padding: 12px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 14px;
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-bg-hover);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .search-container {
        display: none;
    }
    
    .navbar-content {
        padding: 0 12px;
    }
}

@media (max-width: 640px) {
    .profile-button span {
        display: none;
    }
    
    .btn-secondary, .btn-primary {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .content-container {
        padding: 16px 12px;
    }
    
    .logo {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .navbar-content {
        gap: 8px;
    }
    
    .profile-modal {
        left: 8px;
        right: 8px;
        top: 60px;
    }
    
    .profile-modal-content {
        width: 100%;
    }
    
    .confirm-modal-content {
        width: calc(100% - 32px);
        padding: 20px;
    }
    .profile-button {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 4px 4px 4px;
        background-color: transparent;
        border: 1px solid var(--color-border);
        border-radius: 20px;
        color: var(--color-text-primary);
        cursor: pointer;
        transition: background-color 0.2s;
    }
}





/* Creators Grid */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.creator-card {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.creator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #3ea6ff;
}

.creator-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.creator-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3ea6ff;
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.creator-handle {
    color: #aaa;
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
}

.creator-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3ea6ff;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.25rem;
}

.creator-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    min-height: 3.5rem;
}

.view-creator-btn-devuefn {
    width: 100%;
    background: #3ea6ff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.view-creator-btn-devuefn:hover {
    background: #2d8cdf;
    transform: translateY(-2px);
}

.view-creator-btn-youtube {
    width: 100%;
    background: #FF0000;
    color: white;
    border: none;
    padding: 0.5rem 1.0rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 12px;
}

.view-creator-btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .creators-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .creator-card {
        padding: 1rem;
    }
    
    .creator-profile-pic {
        width: 60px;
        height: 60px;
    }
    
    .creator-name {
        font-size: 1.1rem;
    }
    
    .creator-stats {
        gap: 1rem;
    }
}

/* Legal Document Styles */
.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.last-updated {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 2.5rem;
    background: #1f1f1f;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3ea6ff;
}

.legal-section h2 {
    color: #3ea6ff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: #ccc;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.legal-section strong {
    color: #fff;
    font-weight: 600;
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-document {
        padding: 1rem 0.5rem;
    }
    
    .legal-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
}

.coming-soon-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4d; /* light red */
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateX(-50%) translateY(10px);
}

.coming-soon-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}


/* ========== MOBILE VIDEO PAGE OPTIMIZATIONS ========== */
/* Add these styles to the end of your styles.css file */

/* Mobile-specific video player optimizations */
@media (max-width: 768px) {
    /* Video wrapper - stack vertically on mobile */
    #videoWrapper {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Video embed container - full width, proper aspect ratio */
    .video-player-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .video-embed {
        position: relative;
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0 !important;
        border-radius: 0 !important;
    }

    .video-embed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }

    /* Video details section - add padding and better spacing */
    .video-details {
        padding: 12px 16px !important;
        margin-top: 0 !important;
    }

    .video-details-title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    .video-details-stats {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
    }

    .video-details-stats > div:first-child {
        font-size: 13px !important;
        width: 100%;
    }

    /* Action buttons - horizontal scroll on mobile */
    .video-details-stats > div:last-child {
        width: 100%;
        overflow-x: auto;
        display: flex;
        gap: 8px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .video-details-stats > div:last-child::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .video-details-stats button,
    .video-details-stats a {
        flex-shrink: 0 !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }

    /* Description section */
    .video-description {
        margin-top: 12px !important;
        padding: 12px !important;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .video-description p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    #descToggle {
        font-size: 13px !important;
        margin-top: 8px !important;
    }

    /* Recommendations section - YouTube mobile style */
    #recommendations {
        width: 100% !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    #recommendations > div {
        display: flex !important;
        flex-direction: row !important;
        height: 94px !important;
        background-color: transparent !important;
        border-radius: 0 !important;
    }

    #recommendations img {
        width: 168px !important;
        height: 94px !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }

    #recommendations .p-2 {
        padding: 0 0 0 12px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        flex: 1;
        overflow: hidden;
    }

    #recommendations h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-weight: 500;
    }

    #recommendations p {
        font-size: 12px !important;
        color: var(--color-text-secondary) !important;
    }

    /* Content container adjustments */
    .content-container-wide {
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Theater mode button - hide on mobile */
    #theaterModeBtn {
        display: none !important;
    }

    /* Category badge adjustments */
    .video-details-stats span.inline-flex {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    /* Main content area */
    .content {
        padding-top: 0 !important;
    }

    /* Loading state */
    #loadingState {
        padding: 40px 16px !important;
    }

    /* Like button specific styling */
    #likeBtn {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    #likeBtn i {
        font-size: 16px;
    }

    #likeBtn span {
        font-size: 14px;
    }

    /* Download button styling */
    .video-details-stats a[href*="download"] {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
}

/* Tablet adjustments (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    #videoWrapper {
        flex-direction: column !important;
    }

    .video-player-container {
        width: 100% !important;
    }

    #recommendations {
        width: 100% !important;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
        padding: 16px;
    }

    #recommendations > div {
        flex-direction: column !important;
        height: auto !important;
    }

    #recommendations img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }

    #recommendations .p-2 {
        padding: 12px !important;
    }
}

/* Ensure desktop layout stays unchanged (1025px+) */
@media (min-width: 1025px) {
    #videoWrapper {
        flex-direction: row !important;
    }

    #recommendations {
        width: 320px !important;
    }

    #recommendations > div {
        flex-direction: column !important;
    }
}