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

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #212121;
    --bg-hover: #3f3f3f;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #ff0000;
    --border: #303030;
}

.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-hover: #f0f0f0;
    --text-primary: #0f0f0f;
    --text-secondary: #606060;
    --border: #e0e0e0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.main-header {
    background: var(--bg-secondary);
    padding: 12px 24px;
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 24px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-center {
    display: flex;
    justify-content: center;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

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

.menu-btn:hover {
    background: var(--bg-hover);
}

.logo h1 {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tiktok-badge {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiktok-badge svg {
    width: 18px;
    height: 18px;
}

.site-logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
    border-color: #FFC107;
    background: rgba(255, 193, 7, 0.1);
}

body:not(.theme-light) .theme-icon-light {
    display: none;
}

body.theme-light .theme-icon-dark {
    display: none;
}

.login-btn {
    background: #fff;
    color: #fe2c55;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #fe2c55;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn:hover {
    background: #fe2c55;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
}

.theme-light .login-btn {
    background: #fe2c55;
    color: #fff;
}

.theme-light .login-btn:hover {
    background: #e91e4d;
}

.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 40px;
    overflow: hidden;
    background: var(--bg-primary);
    transition: all 0.2s ease;
    min-width: 400px;
}

.search-form:focus-within {
    border-color: #20D5EC;
    box-shadow: 0 0 0 3px rgba(32, 213, 236, 0.1);
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 15px;
}

.search-form input::placeholder {
    color: var(--text-secondary);
}

.search-form button {
    background: var(--bg-secondary);
    border: none;
    border-left: 1px solid var(--border);
    padding: 0 24px;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

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

.search-form button svg {
    width: 22px;
    height: 22px;
}

/* Layout */
.layout {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 20, 30, 0.98) 100%);
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 12px 0;
    position: sticky;
    top: 56px;
    border-right: 2px solid rgba(102, 126, 234, 0.15);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    display: block !important;
}

.theme-light .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    border-right: 2px solid rgba(102, 126, 234, 0.2);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.nav-section {
    padding: 8px 0;
}

.nav-section-title {
    padding: 8px 24px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.nav-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(102, 126, 234, 0.2) 50%, transparent 95%);
    margin: 4px 12px;
}

.nav-item {
    padding: 10px 24px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    font-size: 14px;
    margin: 1px 12px;
    border-radius: 10px;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.2s ease;
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.theme-light .nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f0f0f;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-weight: 600;
}

.nav-item.active .nav-icon svg {
    fill: #667eea;
}

.theme-light .nav-item.active {
    background: rgba(102, 126, 234, 0.1);
}

.shorts-icon-svg svg {
    fill: #ff0000;
}

.live-icon svg {
    fill: #ff4444;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-left: auto;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    margin-top: auto;
}

.sidebar-copyright {
    color: var(--text-secondary);
    font-size: 11px;
    margin: 0;
    text-align: center;
}

.sidebar hr {
    border: none;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    margin: 12px 16px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar h4 {
    padding: 12px 24px 8px;
    color: rgba(102, 126, 234, 0.9);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-light .sidebar h4 {
    color: rgba(102, 126, 234, 1);
}

.main-content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 12px 0;
}

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

.video-card:hover {
    transform: scale(1.02);
}

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

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration, .live-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.3px;
}

.live-badge {
    background: var(--accent);
}

.video-info {
    padding: 12px 0;
}

.video-info h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.video-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.video-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

/* YouTube Shorts Icon */
.shorts-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 4px;
    position: relative;
    vertical-align: middle;
}

.shorts-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 6px solid white;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.nav-item .shorts-icon {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.nav-item .shorts-icon::before {
    border-left-width: 5px;
    border-top-width: 3px;
    border-bottom-width: 3px;
}

.shorts-header h2 .shorts-icon {
    width: 24px;
    height: 24px;
}

.shorts-header h2 .shorts-icon::before {
    border-left-width: 8px;
    border-top-width: 5px;
    border-bottom-width: 5px;
}

/* Shorts Section - Redesigned */
.shorts-section {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(255, 0, 0, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.1);
}

.theme-light .shorts-section {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.08) 0%, rgba(255, 0, 0, 0.03) 100%);
}

.shorts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.shorts-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shorts-header h2 .shorts-logo {
    width: 28px;
    height: 40px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shorts-header h2 .shorts-logo::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin-left: 2px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 24px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.view-all:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.view-all:active {
    transform: translateY(0);
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.view-all-btn:active {
    transform: translateY(0);
}

.shorts-container {
    position: relative;
    padding: 0 50px;
}

.shorts-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.shorts-scroll::-webkit-scrollbar {
    display: none;
}

.short-card {
    min-width: 200px;
    max-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.short-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.short-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.short-card:hover .short-thumbnail {
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.3);
}

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

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

.shorts-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shorts-badge::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid white;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.short-info {
    padding: 14px 6px 0;
}

.short-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.short-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.short-info h3 a:hover {
    color: #ff0000;
}

.short-views {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.short-views::before {
    content: '👁';
    font-size: 12px;
}

/* Movies Section */
.movies-section {
    margin: 48px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.movies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.movies-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.movies-container {
    position: relative;
    padding: 0 48px;
}

.movies-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.movies-scroll::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 300px;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
}

.movie-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.movie-card:hover .movie-thumbnail {
    border-color: rgba(102, 126, 234, 0.6);
}

.movie-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.movie-info {
    padding: 12px 4px 0;
}

.movie-info h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.movie-views {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Live Section */
.live-section {
    margin: 48px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.live-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-container {
    position: relative;
    padding: 0 48px;
}

.live-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.live-scroll::-webkit-scrollbar {
    display: none;
}

.live-card {
    min-width: 300px;
    max-width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.live-card:hover {
    transform: translateY(-8px);
}

.live-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.live-card:hover .live-thumbnail {
    border-color: #ff4444;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge-big {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-info {
    padding: 12px 4px 0;
}

.live-info h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.live-views {
    font-size: 12px;
    color: var(--text-secondary);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-btn:hover {
    background: rgba(102, 126, 234, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.theme-light .scroll-btn {
    background: rgba(102, 126, 234, 0.8);
    color: white;
}

.theme-light .scroll-btn:hover {
    background: rgba(102, 126, 234, 1);
}

/* Shorts Grid Full Page Layout */
.shorts-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 16px;
    padding: 24px 0;
}

.short-card-grid {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.short-card-grid:hover {
    transform: translateY(-8px);
}

.short-card-grid .short-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.short-card-grid:hover .short-thumbnail {
    border-color: rgba(102, 126, 234, 0.6);
}

.short-card-grid .short-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-card-grid .short-info {
    padding: 12px 4px 0;
}

.short-title {
    font-size: 13px;
    font-weight: 700 !important;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.short-title a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Live Section */
.live-section {
    margin: 48px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.live-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-container {
    position: relative;
    padding: 0 48px;
}

.live-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
}

.live-scroll::-webkit-scrollbar {
    display: none;
}

.live-card {
    min-width: 220px;
    max-width: 220px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.live-card:hover {
    transform: translateY(-8px);
}

.live-thumbnail {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: border-color 0.3s ease;
}

.live-card:hover .live-thumbnail {
    border-color: rgba(255, 0, 0, 0.6);
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge-big {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 0, 0, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-info {
    padding: 12px 4px 0;
}

.live-info h3 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.live-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.live-views {
    font-size: 12px;
    color: #ff0000;
    font-weight: 600;
}

/* YouTube-Style Watch Page */
.watch-page-youtube {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    padding: 24px;
    max-width: 100%;
}

.video-main-content {
    flex: 1;
    min-width: 0;
}

.video-player-section {
    padding: 0;
}

.video-player {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
}

.video-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    pointer-events: none;
    z-index: 1;
}

.video-player iframe {
    border-radius: 16px;
}

.theme-light .video-player {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
                0 0 0 1px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1200px) {
    .watch-page-youtube {
        grid-template-columns: 1fr 300px;
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .watch-page-youtube {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .video-player {
        margin-bottom: 16px;
    }
    
    .video-sidebar {
        width: 100% !important;
        margin-top: 16px !important;
    }
}

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

.video-details {
    padding: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.video-details h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.video-stats .views {
    font-weight: 600;
    color: var(--text-primary);
}

/* New Meta + Actions Row */
.video-meta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.video-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.video-meta-left .views {
    font-weight: 600;
    color: var(--text-primary);
}

.video-meta-left .category {
    color: var(--accent);
    font-weight: 500;
}

.video-meta-left .date {
    color: var(--text-secondary);
}

.meta-dot {
    color: var(--text-secondary);
    opacity: 0.5;
}

.video-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn-pill svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.action-btn-pill:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.action-btn-pill:active {
    transform: translateY(0);
}

.action-btn-pill.active {
    background: var(--accent);
    color: white;
}

.action-btn-pill.active svg {
    fill: currentColor;
}

.action-btn-report:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.action-btn-report:hover svg {
    stroke: #ef4444;
}

@media (max-width: 768px) {
    .video-meta-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .video-action-buttons {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .action-btn-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .action-btn-pill span {
        display: none;
    }
    
    .action-btn-pill svg {
        width: 20px;
        height: 20px;
    }
}

/* Channel Info YouTube Style */
.channel-info-youtube {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.channel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.channel-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.subscriber-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.channel-name-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.channel-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.verified-badge-blue {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.channel-verified-badge {
    flex-shrink: 0;
}

.channel-subscribed {
    margin-left: auto;
    background: #f5f5f5;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}

.channel-subscribed:hover {
    background: #e5e5e5;
}

/* YouTube-Style Action Buttons */
.video-actions-youtube {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    padding-bottom: 16px;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 4px;
    gap: 0;
}

.action-btn-youtube {
    background: none;
    border: none;
    padding: 8px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.action-btn-youtube:hover {
    color: var(--text-primary);
}

.action-btn-youtube .icon {
    font-size: 16px;
}

.divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* Related Videos Sidebar */
.video-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-videos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-video-item {
    display: flex;
    gap: 8px;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s;
    padding: 4px;
}

.related-video-item:hover {
    background: var(--bg-secondary);
}

.related-video-thumbnail {
    position: relative;
    width: 168px;
    height: 94px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.related-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-thumbnail .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
}

.related-video-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-video-info h4 {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.related-video-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-description {
    margin: 20px 0;
}

.video-description h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.video-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag {
    background: var(--bg-secondary);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #a78bfa;
}

/* Related Videos - YouTube Style */
.watch-page .sidebar {
    position: sticky;
    top: 80px;
}

.watch-page .sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 0;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.related-videos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-video {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.related-video:hover {
    background: none;
}

.related-thumbnail {
    position: relative;
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.related-thumbnail .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    gap: 6px;
}

.related-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.related-meta {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.related-meta span {
    display: inline;
    margin-right: 8px;
}

/* Modern Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.share-modal.active {
    display: flex;
}

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

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

.share-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: slideUp 0.4s ease;
    position: relative;
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.share-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    transform: rotate(90deg);
}

.share-link-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

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

.share-platforms {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.share-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-platform:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.share-platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.share-platform:hover .share-platform-icon {
    transform: scale(1.1);
}

.share-platform.facebook .share-platform-icon {
    background: #1877f2;
}

.share-platform.twitter .share-platform-icon {
    background: #1da1f2;
}

.share-platform.whatsapp .share-platform-icon {
    background: #25d366;
}

.share-platform.linkedin .share-platform-icon {
    background: #0077b5;
}

.share-platform.reddit .share-platform-icon {
    background: #ff4500;
}

.share-platform.telegram .share-platform-icon {
    background: #0088cc;
}

.share-platform.email .share-platform-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-platform.copy .share-platform-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.share-platform-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-link {
    padding: 8px 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
}

.page-link:hover, .page-link.active {
    background: var(--bg-hover);
}

/* Footer */
.main-footer {
    background: #1a2332;
    padding: 48px 24px 24px;
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.theme-light .main-footer {
    background: #f5f5f5;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 32px;
}

.footer-column h3,
.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.theme-light .footer-column h3,
.theme-light .footer-column h4 {
    color: #0f0f0f;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
}

.theme-light .footer-brand p {
    color: #606060;
}

.social-links h4 {
    margin-top: 24px;
}

.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    max-width: 220px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon.facebook {
    background: #1877f2;
    color: white;
}

.social-icon.twitter {
    background: #1da1f2;
    color: white;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon.youtube {
    background: #ff0000;
    color: white;
}

.social-icon.tiktok {
    background: #000000;
    color: white;
}

.social-icon.linkedin {
    background: #0077b5;
    color: white;
}

.social-icon.discord {
    background: #5865f2;
    color: white;
}

.social-icon.telegram {
    background: #0088cc;
    color: white;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* App Download Section */
.app-download-section {
    margin-top: 32px;
}

.app-download-section h4 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(20, 30, 48, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.app-badge:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.app-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #667eea;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.app-badge:hover .app-icon {
    color: #667eea;
    opacity: 1;
    transform: scale(1.1);
}

.app-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-text small {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.app-text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-block;
}

.theme-light .footer-links a {
    color: #606060;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.theme-light .footer-links a:hover {
    color: #667eea;
}

.newsletter-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.theme-light .newsletter-text {
    color: #606060;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 300px;
}

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

.newsletter-form input:focus {
    border-color: var(--accent);
}

.newsletter-form button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.theme-light .footer-bottom p {
    color: #606060;
}

.theme-light .footer-bottom {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -240px;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        display: block !important;
    }
    
    .sidebar.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .header-search {
        display: none;
    }
    
    .watch-page {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.page-title {
    margin-bottom: 24px;
    font-size: 24px;
}

.no-videos {
    text-align: center;
    padding: 48px;
    grid-column: 1/-1;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Legal Pages & Contact Form */
.legal-page {
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
}

.legal-container h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 36px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

.page-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

.legal-content {
    color: var(--text-primary);
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 24px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.legal-content h3 {
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    font-size: 18px;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul, .legal-content ol {
    margin: 15px 0 15px 25px;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content a {
    color: #3b82f6;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.notice-box, .contact-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 6px;
}

.notice-box p, .contact-box p {
    margin-bottom: 10px;
}

.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10b981;
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    color: #ef4444;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form-section h2,
.contact-info-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.contact-info-card {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-info-card h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-info-card p {
    color: var(--text-secondary);
    margin: 5px 0;
    line-height: 1.6;
}

.contact-info-card a {
    color: #3b82f6;
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 28px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.faq-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 24px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-container h1 {
        font-size: 28px;
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
}

/* Home Content Sections */
.home-content-sections {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.content-section-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content-section-card .section-title {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.scrollable-content {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 16px 16px;
    color: var(--text-primary);
    line-height: 1.8;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
}

/* Firefox scrollbar */
.scrollable-content {
    scrollbar-color: linear-gradient(180deg, #667eea, #764ba2) rgba(102, 126, 234, 0.1);
    scrollbar-width: thin;
}





.scrollable-content::-webkit-scrollbar {
    width: 12px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(102, 126, 234, 0.4);
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

/* Recommendation System Styles */
.loading-recommendations {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.no-recommendations {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.recommendation-reason {
    display: inline-block;
    font-size: 11px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.theme-light .recommendation-reason {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.recommended-section {
    padding: 24px 0;
}

.recommended-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 24px;
}

.recommended-section .section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommended-section .section-title .icon {
    font-size: 24px;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 24px;
}

.recommendation-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.recommendation-card a {
    text-decoration: none;
    color: inherit;
}

.recommendation-card .thumbnail-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.recommendation-card .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.recommendation-card .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.recommendation-card .card-info {
    padding: 12px;
}

.recommendation-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.recommendation-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.recommendation-card .card-reason {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 8px;
}

.theme-light .recommendation-card .card-reason {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.08);
}

@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 16px;
    }
    
    .recommended-section .section-header {
        padding: 0 16px;
    }
    
    .recommendation-card .card-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

.scrollable-content h3 {
    color: #a8b7ff;
    font-size: 18px;
    margin: 16px 0 12px 0;
}

.theme-light .scrollable-content h3 {
    color: #4f46e5;
}

.scrollable-content h4 {
    color: #667eea;
    font-size: 16px;
    margin: 12px 0 8px 0;
    font-weight: 600;
}

.theme-light .scrollable-content h4 {
    color: #4338ca;
}

.scrollable-content ul,
.scrollable-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.scrollable-content li {
    margin: 8px 0;
    color: var(--text-secondary);
}

.scrollable-content p {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.scrollable-content strong {
    color: #667eea;
    font-weight: 600;
}

/* FAQs Section */
.faqs-section {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
}

.faqs-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.faqs-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #667eea;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 20px 24px;
}

.faq-answer p {
    margin-bottom: 12px;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .home-content-sections {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .scrollable-content {
        max-height: 300px;
    }
    
    .faqs-section {
        padding: 0 16px;
    }
    
    .faqs-title {
        font-size: 24px;
    }
    
    /* Mobile Movies Section */
    .movies-container {
        padding: 0 32px;
    }
    
    .movie-card {
        min-width: 150px;
        max-width: 150px;
    }
    
    .movies-header {
        margin-bottom: 16px;
    }
    
    .movies-header h2 {
        font-size: 20px;
    }
    
    /* Mobile Live Section */
    .live-container {
        padding: 0 32px;
    }
    
    .live-card {
        min-width: 180px;
        max-width: 180px;
    }
    
    .live-header {
        margin-bottom: 16px;
    }
    
    .live-header h2 {
        font-size: 20px;
    }
    
    /* Mobile Shorts Section */
    .shorts-container {
        padding: 0 32px;
    }
    
    .short-card {
        min-width: 120px;
        max-width: 120px;
    }
    
    .shorts-header {
        margin-bottom: 16px;
    }
    
    .shorts-header h2 {
        font-size: 20px;
    }
}

/* OLD Shorts Viewer - DISABLED (using new layout below) */
/* .shorts-viewer-old-disabled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    margin: 0;
    padding: 0;
} */

/* NEW Shorts Viewer - With Header & Sidebar Visible */
.shorts-viewer {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
}

.shorts-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shorts-player {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shorts-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.shorts-nav {
    position: absolute;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    top: 50%;
    transform: translateY(-50%);
}

.shorts-nav-prev {
    left: 20px;
}

.shorts-nav-next {
    right: 20px;
}

.shorts-nav:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.05);
}

.shorts-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.shorts-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    z-index: 15;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 100%);
    padding: 80px 20px 20px;
    box-sizing: border-box;
}

.shorts-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    word-break: break-word;
}

.shorts-stats {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.shorts-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.shorts-action-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.shorts-action-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

.shorts-action-btn:active {
    transform: translateY(0);
}

.shorts-action-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.shorts-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0;
    animation: autoPlayProgress 6s linear;
    z-index: 25;
}

@keyframes autoPlayProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .shorts-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .shorts-nav-prev {
        left: 10px;
    }
    
    .shorts-nav-next {
        right: 10px;
    }
    
    .shorts-info {
        padding: 60px 16px 16px;
    }
    
    .shorts-title {
        font-size: 15px;
    }
    
    .shorts-stats {
        font-size: 12px;
    }
    
    .shorts-action-btn {
        padding: 7px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .shorts-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .shorts-nav-prev {
        left: 8px;
    }
    
    .shorts-nav-next {
        right: 8px;
    }
    
    .shorts-buttons {
        gap: 8px;
    }
    
    .shorts-action-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* Related Videos Section */
.related-videos-section {
    max-width: 100%;
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.related-videos-section h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 0 24px;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 24px;
}

.related-video {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 12px;
    overflow: hidden;
}

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

.related-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-thumbnail .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.related-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

.related-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

@media (max-width: 768px) {
    .related-videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 0 16px;
    }
    
    .related-videos-section h2 {
        padding: 0 16px;
    }
}

/* Mobile responsive - Live section grid on mobile */
@media (max-width: 768px) {
    .live-container {
        padding: 0;
    }

    .live-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        overflow-x: visible;
        padding: 0;
    }

    .scroll-btn {
        display: none !important;
    }

    .live-card {
        min-width: auto;
        max-width: 100%;
    }

    .shorts-container {
        padding: 0 16px;
    }

    .shorts-scroll {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 8px 0;
    }
    
    .shorts-scroll::-webkit-scrollbar {
        display: none;
    }

    .short-card {
        min-width: 140px;
        max-width: 140px;
        flex-shrink: 0;
    }
    
    .short-card .short-info {
        padding: 8px 4px 4px;
    }
    
    .short-card .short-info h3 {
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 34px;
        word-break: break-word;
    }
    
    .short-card .short-info h3 a {
        color: var(--text-primary);
        text-decoration: none;
    }
    
    .short-card .short-views {
        font-size: 11px;
        color: var(--text-secondary);
        display: block;
    }
    
    .shorts-header {
        padding: 0 16px;
    }
    
    .shorts-header .view-all {
        display: inline-flex !important;
    }
    
    .shorts-grid-full {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px 12px;
        padding: 16px 0;
    }
}

/* Articles & Guides Section */
.guides-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.guides-header {
    margin-bottom: 30px;
}

.guides-header h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.articles-scrollable {
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 30px;
    background: rgba(102, 126, 234, 0.05);
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.articles-scrollable::-webkit-scrollbar {
    width: 8px;
}

.articles-scrollable::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.articles-scrollable::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #a855f7 100%);
    border-radius: 10px;
}

.articles-scrollable::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2 0%, #c084fc 100%);
}

.article-card {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.article-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.article-card h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

.article-card h3 a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.theme-light .article-card h3 a {
    color: #7c3aed;
}

.article-card h3 a:hover {
    color: #667eea;
}

.theme-light .article-card h3 a:hover {
    color: #4f46e5;
}

.article-excerpt {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.theme-light .article-excerpt {
    color: #475569;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.theme-light .article-meta {
    color: #374151;
}

.article-date {
    display: flex;
    align-items: center;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #a78bfa;
}

/* Homepage Intro */
.homepage-intro {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.homepage-intro .intro-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Home Content Sections (Admin Manageable) */
.home-content-sections {
    margin-bottom: 24px;
}

.home-content-section {
    padding: 24px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.home-content-section .section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.home-content-section .section-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.home-content-section .section-content p {
    margin-bottom: 12px;
}

.home-content-section .intro-text {
    font-size: 16px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Redirect Links Section */
.redirect-links-section {
    padding: 24px;
    margin: 28px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(10px);
}

.redirect-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.redirect-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    max-width: 600px;
}

.redirect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.redirect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.4s ease;
}

.redirect-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.35);
}

.redirect-btn:hover::before {
    left: 100%;
}

.redirect-btn:active {
    transform: translateY(-1px) scale(0.98);
}

@media (max-width: 768px) {
    .redirect-links-section {
        padding: 18px;
        margin: 20px 0;
    }
    
    .redirect-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .redirect-buttons {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .redirect-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Ad Containers - Responsive Styles */
.ad-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.ad-header,
.ad-footer {
    max-width: 100%;
    margin: 20px 0;
    padding: 0;
}

.ad-header > div,
.ad-footer > div {
    border-radius: 12px;
    overflow: hidden;
    padding: 16px 24px !important;
    text-align: center;
}

.ad-header h3,
.ad-footer h3 {
    font-size: 18px !important;
    margin: 0 0 6px 0 !important;
    font-weight: 600;
}

.ad-header p,
.ad-footer p {
    font-size: 14px !important;
    margin: 0 !important;
    opacity: 0.95;
}

.ad-sidebar {
    margin: 15px 0;
}

.ad-between-videos {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.ad-video-overlay {
    margin: 15px 0;
}

.ad-home-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.ad-related-videos {
    margin: 20px 0;
}

/* Mobile Responsive - Header/Footer Ads */
@media (max-width: 768px) {
    .ad-header,
    .ad-footer {
        margin: 10px 0 !important;
        max-width: 100% !important;
    }
    
    .ad-header > div,
    .ad-footer > div {
        padding: 12px !important;
        font-size: 14px;
    }
    
    .ad-header h3,
    .ad-footer h3 {
        font-size: 16px !important;
        margin: 0 !important;
    }
    
    .ad-header p,
    .ad-footer p {
        font-size: 12px !important;
        margin: 4px 0 0 0 !important;
    }
    
    .ad-between-videos {
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .ad-home-content {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    /* Mobile Header Responsive - POLISHED DESIGN */
    .main-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
    }
    
    .header-left .logo h1 {
        font-size: 15px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
    
    .header-left .verified-badge-header {
        font-size: 10px !important;
        padding: 2px 4px !important;
    }
    
    .header-left .site-logo-img {
        max-height: 24px !important;
    }
    
    .menu-btn {
        font-size: 16px !important;
        padding: 6px 8px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .header-center {
        order: 3 !important;
        width: 100% !important;
        flex: 1 0 100% !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    
    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
    }
    
    .search-form {
        width: 100% !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        overflow: hidden !important;
    }
    
    .search-form input {
        font-size: 13px !important;
        padding: 8px 12px !important;
        background: transparent !important;
    }
    
    .search-form input::placeholder {
        color: var(--text-secondary) !important;
        opacity: 0.7 !important;
    }
    
    .search-form button {
        padding: 8px 12px !important;
        font-size: 14px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
    }
    
    .login-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    }
    
    .theme-toggle {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .theme-icon-dark,
    .theme-icon-light {
        font-size: 14px !important;
    }
    
    /* Light theme mobile header adjustments */
    .theme-light .main-header {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }
    
    .theme-light .menu-btn,
    .theme-light .theme-toggle {
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    .theme-light .search-form {
        background: rgba(0, 0, 0, 0.04) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .ad-header,
    .ad-footer {
        margin: 20px 0;
    }
    
    .ad-between-videos,
    .ad-home-content {
        padding: 0 15px;
    }
    
    .ad-header > div,
    .ad-footer > div {
        padding: 15px !important;
    }
    
    .main-header {
        grid-template-columns: 200px 1fr 200px;
        padding: 12px 20px;
    }
}

/* Logo with Verified Badge */
.logo-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge-header {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* YouTube-Style Comments Section */
.comments-section {
    margin-top: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.comments-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.comments-count {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-input-wrapper {
    flex: 1;
}

.comment-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 40px;
    max-height: 100px;
    transition: all 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
    background: var(--bg-secondary);
}

.comment-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

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

.cancel-btn {
    background: transparent;
    color: var(--text-secondary);
}

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

.submit-btn {
    background: #2563eb;
    color: white;
}

.submit-btn:hover {
    background: #1d4ed8;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.no-comments {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px 0;
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.comment-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-item-content {
    flex: 1;
}

.comment-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-item-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.comment-item-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    transition: color 0.2s;
}

.comment-action-btn:hover {
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .watch-page-youtube {
        grid-template-columns: 1fr 280px;
        gap: 16px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .watch-page-youtube {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
    
    .video-sidebar {
        position: static;
        top: auto;
    }
    
    .video-player {
        margin-bottom: 16px;
    }
    
    .comment-form {
        gap: 8px;
    }
}

/* Channel Name with Verified Badge */
.channel-name-with-badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.channel-name-with-badge .verified-badge-blue {
    width: 18px;
    height: 18px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0;
    padding: 0;
}


/* Polished Download Modal */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

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

.download-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 540px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
}

.download-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.download-subtitle {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
    flex-shrink: 0;
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.download-option:hover::before {
    left: 100%;
}

.download-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.download-option.premium {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.download-option.premium:hover {
    background: rgba(102, 126, 234, 0.15);
}

.download-option.recommended {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.download-option.recommended:hover {
    background: rgba(16, 185, 129, 0.15);
}

.download-option-left {
    flex: 1;
    position: relative;
    z-index: 1;
}

.download-quality {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.download-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.recommended-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.download-size {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* Like/Dislike Button Active State */
.action-btn-youtube.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn-youtube.active .icon {
    transform: scale(1.2);
}

@media (max-width: 640px) {
    .download-modal-content {
        padding: 24px;
        max-width: 100%;
        width: calc(100% - 32px);
    }
    
    .download-modal-header {
        flex-direction: column;
    }
    
    .download-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .download-size {
        align-self: flex-start;
    }
}
/* Like/Dislike Button Active State */
.action-btn-youtube.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.action-btn-youtube.active .icon {
    transform: scale(1.2);
}

/* Comment Form Footer with Character Counter */
.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.char-counter {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.comment-buttons {
    display: flex;
    gap: 8px;
}

/* Comment Action Button Liked State */
.comment-action-btn.liked {
    color: #667eea !important;
    font-weight: 600;
}

/* Like Button Styling Fix */
#likeBtn, #dislikeBtn {
    position: relative;
    transition: all 0.3s ease;
}

#likeBtn.active, #dislikeBtn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: scale(1.05);
}

#likeBtn.active .icon, #dislikeBtn.active .icon {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.2); }
}

/* Download Option Ultra 4K Badge */
.download-option.ultra {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

.download-option.ultra:hover {
    background: rgba(255, 107, 53, 0.15);
}

.download-option.ultra .recommended-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%) !important;
}

/* Download option scroll improvement */
.download-options {
    max-height: 600px;
    overflow-y: auto;
}

.download-options::-webkit-scrollbar {
    width: 6px;
}

.download-options::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.download-options::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.download-options::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Subscribe Button Styling */
.channel-subscribed {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.channel-subscribed:hover:not(:disabled) {
    background: #cc0000;
    transform: scale(1.05);
}

.channel-subscribed:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


.traffic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.traffic-title-block h2 {
    color: #e2e8f0;
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.traffic-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.traffic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #2d3748;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    transform: translateY(-2px);
}

.stat-label {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
}

.traffic-chart {
    background: rgba(15, 20, 25, 0.5);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #2d3748;
}

.traffic-chart canvas {
    max-height: 300px;
}

@media (max-width: 768px) {
    .traffic-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .traffic-stats {
        grid-template-columns: 1fr;
    }
    
    .traffic-trend-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .traffic-title-block h2 {
        font-size: 22px;
    }
}

/* YouTube-Style Shorts Page Layout */
.shorts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.shorts-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.shorts-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 16px;
    padding: 24px 0;
}

.short-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.short-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.short-thumbnail-wrapper {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.short-card:hover .short-thumbnail-wrapper {
    border-color: rgba(102, 126, 234, 0.8);
    transform: scale(1.02);
}

.short-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.short-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.short-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.short-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.short-card:hover .short-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.short-info {
    padding: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.short-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-primary);
}

.short-views {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shorts-masonry {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px 12px;
    }
    
    .shorts-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .shorts-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .shorts-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 8px;
    }
}

/* YouTube-Style Shorts Layout - 3 Column */
.shorts-viewer {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr 100px;
    gap: 0;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

/* Left Panel */
.shorts-left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 20px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.shorts-left-content {
    color: white;
}

.shorts-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shorts-view-count {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    margin-top: 4px;
}

.shorts-channel-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
}

.shorts-avatar {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.shorts-channel-details {
    flex: 1;
}

.shorts-channel-name {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.verified-badge-shorts {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #2563eb;
    border-radius: 50%;
    font-size: 10px;
    color: white;
    font-weight: bold;
    margin-left: 4px;
    flex-shrink: 0;
}

.shorts-subscribe-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shorts-subscribe-btn:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

/* Center Player */
.shorts-player-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
}

.shorts-player {
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shorts-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.shorts-nav {
    position: absolute;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    top: 50%;
    transform: translateY(-50%);
}

.shorts-nav-prev {
    left: 20px;
}

.shorts-nav-next {
    right: 20px;
}

.shorts-nav:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.05);
}

.shorts-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Right Panel - Engagement */
.shorts-right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 12px;
    border-left: 1px solid rgba(255,255,255,0.1);
    gap: 16px;
}

.shorts-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.shorts-engagement-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.engagement-icon {
    font-size: 24px;
    display: block;
}

.engagement-count {
    font-size: 10px;
    font-weight: 600;
    display: block;
    height: 12px;
    line-height: 12px;
}

.shorts-engagement-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

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

.shorts-engagement-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(102, 126, 234, 0.5);
}

.shorts-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0;
    animation: autoPlayProgress 6s linear;
    z-index: 25;
}

@keyframes autoPlayProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 1024px) {
    .shorts-viewer {
        grid-template-columns: 160px 1fr 80px;
    }
    
    .shorts-left-panel {
        padding: 20px 12px;
    }
    
    .shorts-title {
        font-size: 14px;
    }
    
    .shorts-engagement-btn {
        width: 48px;
        height: 48px;
    }
    
    .engagement-icon {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .shorts-viewer {
        grid-template-columns: 1fr;
        height: 100%;
    }
    
    .shorts-left-panel,
    .shorts-right-panel {
        display: none;
    }
    
    .shorts-player-container {
        grid-column: 1;
    }
}
/* Old shorts CSS will be overridden by new styles below */

/* ============================================
   YouTube-Style Shorts Viewer - REDESIGNED
   ============================================ */

.shorts-viewer {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    margin: 0;
    padding: 0;
    gap: 24px;
}

/* Main Area - Centered */
.shorts-main-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: 100%;
    justify-content: center;
}

/* Vertical Video Frame - 9:16 Aspect Ratio */
.shorts-video-frame {
    position: relative;
    width: 360px;
    height: 640px;
    max-height: calc(100vh - 120px);
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.shorts-player {
    width: 100%;
    height: 100%;
    background: #000;
}

.shorts-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* Overlay Info at Bottom of Video */
.shorts-overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: white;
    z-index: 10;
}

.shorts-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shorts-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.shorts-channel-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex: 1;
}

.shorts-subscribe-btn {
    background: white;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shorts-subscribe-btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.shorts-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation Arrows */
.shorts-nav-arrow {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shorts-nav-arrow:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

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

/* Right Side - Engagement Panel */
.shorts-engagement-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.shorts-action-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    transition: all 0.2s ease;
    min-width: 48px;
}

.shorts-action-btn:hover {
    transform: scale(1.1);
}

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

.shorts-action-btn.active .action-icon {
    color: #3ea6ff;
}

.action-icon {
    font-size: 28px;
    display: block;
    line-height: 1;
}

.action-label {
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-align: center;
}

/* Progress Bar */
.shorts-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0;
    animation: autoPlayProgress 6s linear;
    z-index: 100;
}

@keyframes autoPlayProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shorts-viewer {
        flex-direction: column;
        gap: 0;
    }
    
    .shorts-main-area {
        width: 100%;
        gap: 8px;
    }
    
    .shorts-video-frame {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 80px);
        max-height: none;
        border-radius: 0;
    }
    
    .shorts-engagement-panel {
        position: absolute;
        right: 12px;
        bottom: 120px;
        padding: 0;
        gap: 16px;
    }
    
    .shorts-nav-arrow {
        display: none;
    }
    
    .action-icon {
        font-size: 24px;
    }
    
    .action-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .shorts-engagement-panel {
        right: 8px;
        bottom: 100px;
        gap: 12px;
    }
    
    .shorts-action-btn {
        padding: 6px;
    }
    
    .action-icon {
        font-size: 22px;
    }
}

/* ============================================
   FINAL YouTube-Style Shorts Override
   ============================================ */

.shorts-viewer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #000 !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    gap: 24px !important;
    grid-template-columns: unset !important;
}

.shorts-main-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    height: 100% !important;
    justify-content: center !important;
}

.shorts-video-frame {
    position: relative !important;
    width: 360px !important;
    height: 640px !important;
    max-height: calc(100vh - 120px) !important;
    background: #000 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

.shorts-video-frame .shorts-player {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

.shorts-video-frame .shorts-player iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: none !important;
}

.shorts-overlay-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 60px 16px 16px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%) !important;
    color: white !important;
    z-index: 10 !important;
}

.shorts-channel-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.shorts-overlay-info .shorts-avatar {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.shorts-overlay-info .shorts-channel-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: white !important;
    flex: 1 !important;
}

.shorts-overlay-info .shorts-subscribe-btn {
    background: white !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.shorts-overlay-info .shorts-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: white !important;
}

.shorts-nav-arrow {
    background: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.shorts-engagement-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px 0 !important;
}

.shorts-action-btn {
    background: transparent !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px !important;
    min-width: 48px !important;
}

.shorts-action-btn .action-icon {
    font-size: 28px !important;
    display: block !important;
    line-height: 1 !important;
}

.shorts-action-btn .action-label {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: white !important;
    text-align: center !important;
}

/* Hide old elements */
.shorts-left-panel,
.shorts-right-panel,
.shorts-player-container {
    display: none !important;
}

/* Show only new elements */
.shorts-main-area,
.shorts-engagement-panel {
    display: flex !important;
}

@media (max-width: 768px) {
    .shorts-video-frame {
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 80px) !important;
        max-height: none !important;
        border-radius: 0 !important;
    }
    
    .shorts-engagement-panel {
        position: absolute !important;
        right: 12px !important;
        bottom: 120px !important;
        padding: 0 !important;
        gap: 16px !important;
    }
    
    .shorts-nav-arrow {
        display: none !important;
    }
}

/* ============================================
   FIXED: Shorts with Header & Sidebar Visible
   ============================================ */

.shorts-viewer {
    position: relative !important;
    top: unset !important;
    left: unset !important;
    width: 100% !important;
    min-height: calc(100vh - 70px) !important;
    height: auto !important;
    background: #000 !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 24px !important;
    z-index: 1 !important;
    gap: 24px !important;
}

.shorts-main-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding-top: 20px !important;
}

.shorts-video-frame {
    position: relative !important;
    width: 360px !important;
    height: 640px !important;
    max-height: calc(100vh - 150px) !important;
    background: #000 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
}

.shorts-engagement-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding-top: 80px !important;
    position: sticky !important;
    top: 100px !important;
}

.shorts-action-btn .action-icon {
    font-size: 26px !important;
}

.shorts-action-btn .action-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: white !important;
}

.shorts-nav-arrow {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.shorts-nav-arrow:hover {
    background: rgba(255,255,255,0.25) !important;
    transform: scale(1.1) !important;
}

/* Make header visible by removing position:fixed from shorts */
.shorts-viewer ~ * {
    display: block !important;
}

/* Mobile: Full height but keep header */
@media (max-width: 768px) {
    .shorts-viewer {
        padding: 12px !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    .shorts-video-frame {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        aspect-ratio: 9/16 !important;
        max-height: calc(100vh - 200px) !important;
    }
    
    .shorts-engagement-panel {
        position: fixed !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding-top: 0 !important;
        gap: 16px !important;
        background: rgba(0,0,0,0.5) !important;
        border-radius: 24px !important;
        padding: 12px 8px !important;
    }
    
    .shorts-nav-arrow {
        width: 40px !important;
        height: 40px !important;
    }
    
    .shorts-action-btn .action-icon {
        font-size: 22px !important;
    }
    
    .shorts-action-btn .action-label {
        font-size: 10px !important;
    }
}

/* ============================================
   FINAL FIX: Header & Sidebar Always Visible
   ============================================ */

/* Ensure header is ALWAYS visible above shorts */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* Desktop header height */
@media (min-width: 769px) {
    .main-header {
        height: 56px !important;
    }
    .layout {
        padding-top: 56px !important;
    }
}

/* Mobile header - auto height for 2-row layout */
@media (max-width: 768px) {
    .main-header {
        height: auto !important;
        min-height: 48px !important;
    }
    .layout {
        padding-top: 90px !important;
    }
}

/* Sidebar always visible on desktop */
.sidebar {
    display: block !important;
}

/* Shorts viewer inside main content - NOT fixed position */
.shorts-viewer {
    position: relative !important;
    background: #0f0f0f !important;
    min-height: calc(100vh - 80px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 20px !important;
    gap: 24px !important;
    z-index: 1 !important;
}

/* Video frame sizing */
.shorts-video-frame {
    width: 360px !important;
    height: 640px !important;
    max-height: calc(100vh - 120px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #000 !important;
    position: relative !important;
}

.shorts-main-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

/* Engagement panel positioning */
.shorts-engagement-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    padding-top: 100px !important;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .sidebar {
        display: none !important;
        position: fixed !important;
        z-index: 9998 !important;
    }
    
    .sidebar.open {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 52px !important;
    }
    
    .layout {
        padding-top: 52px !important;
    }
    
    .shorts-viewer {
        padding: 8px !important;
        min-height: calc(100vh - 60px) !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .shorts-video-frame {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        aspect-ratio: 9/16 !important;
        max-height: calc(100vh - 150px) !important;
    }
    
    .shorts-engagement-panel {
        position: fixed !important;
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        padding-top: 0 !important;
        z-index: 100 !important;
        background: rgba(0,0,0,0.6) !important;
        padding: 12px 6px !important;
        border-radius: 20px !important;
    }
    
    .shorts-nav-arrow {
        display: none !important;
    }
}

/* ============================================
   THEME-AWARE SHARE MODAL
   ============================================ */

/* Dark theme (default) */
.theme-dark .share-modal-content,
body:not(.theme-light) .share-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
}

.theme-dark .share-link-container,
body:not(.theme-light) .share-link-container {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.theme-dark .share-link-input,
body:not(.theme-light) .share-link-input {
    color: #ffffff;
}

.theme-dark .share-platform,
body:not(.theme-light) .share-platform {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .share-platform-name,
body:not(.theme-light) .share-platform-name {
    color: #ffffff;
}

/* Light theme */
.theme-light .share-modal-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .share-modal-header h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-light .close-modal {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

.theme-light .share-link-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .share-link-input {
    color: #1e293b;
}

.theme-light .share-platform {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .share-platform:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.theme-light .share-platform-name {
    color: #1e293b;
}

/* ============================================
   FINAL SHORTS LAYOUT FIX
   ============================================ */

/* Ensure shorts viewer is NOT fixed */
.shorts-viewer {
    position: relative !important;
    width: 100% !important;
    min-height: calc(100vh - 80px) !important;
    background: #0f0f0f !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 24px !important;
    gap: 24px !important;
    z-index: 1 !important;
}

/* Light theme shorts background */
.theme-light .shorts-viewer {
    background: #f5f5f5 !important;
}

.shorts-main-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
}

.shorts-video-frame {
    position: relative !important;
    width: 360px !important;
    height: 640px !important;
    max-height: calc(100vh - 140px) !important;
    background: #000 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

.shorts-video-frame .shorts-player {
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

.shorts-video-frame .shorts-player iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.shorts-overlay-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 60px 16px 16px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%) !important;
    color: white !important;
    z-index: 10 !important;
}

.shorts-channel-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
}

.shorts-overlay-info .shorts-avatar {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}

.shorts-overlay-info .shorts-channel-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: white !important;
}

.shorts-overlay-info .shorts-subscribe-btn {
    background: white !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-left: auto !important;
}

.shorts-overlay-info .shorts-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: white !important;
}

.shorts-nav-arrow {
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: white !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-light .shorts-nav-arrow {
    background: rgba(0,0,0,0.1) !important;
    border-color: rgba(0,0,0,0.2) !important;
    color: #333 !important;
}

.shorts-engagement-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    padding-top: 80px !important;
}

.shorts-action-btn {
    background: transparent !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px !important;
}

.theme-light .shorts-action-btn {
    color: #333 !important;
}

.shorts-action-btn .action-icon {
    font-size: 26px !important;
}

.shorts-action-btn .action-label {
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* Shorts Engagement Panel - BELOW VIDEO (horizontal layout) */
.shorts-engagement-panel-below {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.shorts-action-btn-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
    flex: 1;
}

.shorts-action-btn-horizontal:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.shorts-action-btn-horizontal .action-icon {
    font-size: 16px !important;
}

.shorts-action-btn-horizontal .action-label {
    font-size: 8px !important;
    font-weight: 500;
}

.shorts-action-btn-horizontal.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Light theme for horizontal engagement buttons */
.theme-light .shorts-engagement-panel-below {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(226, 232, 240, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light .shorts-action-btn-horizontal {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .shorts-action-btn-horizontal:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Mobile responsive shorts - POLISHED MODERN DESIGN */
@media (max-width: 768px) {
    .shorts-viewer {
        padding: 12px !important;
        flex-direction: column !important;
        position: relative !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: calc(100vh - 90px) !important;
        background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%) !important;
    }
    
    .shorts-main-area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
    }
    
    .shorts-video-frame {
        width: calc(100% - 16px) !important;
        max-width: 340px !important;
        height: calc(100vh - 240px) !important;
        max-height: 580px !important;
        position: relative !important;
        margin: 0 auto !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                    0 0 0 1px rgba(255, 255, 255, 0.1),
                    inset 0 0 60px rgba(0, 0, 0, 0.3) !important;
        background: #000 !important;
    }
    
    .shorts-video-frame iframe,
    .shorts-video-frame video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 20px !important;
    }
    
    .shorts-player {
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }
    
    .shorts-player iframe {
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
    }
    
    .shorts-overlay-info {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 20px 16px !important;
        background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 100%) !important;
        border-radius: 0 0 20px 20px !important;
    }
    
    .shorts-overlay-info .shorts-channel-row {
        gap: 10px !important;
    }
    
    .shorts-overlay-info .shorts-avatar {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .shorts-overlay-info .shorts-channel-name {
        font-size: 13px !important;
    }
    
    .shorts-overlay-info .shorts-subscribe-btn {
        padding: 6px 14px !important;
        font-size: 12px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4) !important;
    }
    
    .shorts-overlay-info .shorts-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin-top: 8px !important;
    }
    
    .shorts-engagement-panel-below {
        max-width: 340px !important;
        width: calc(100% - 16px) !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        margin: 14px auto 0 auto !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }
    
    .shorts-action-btn-horizontal {
        padding: 10px 12px !important;
        min-width: 52px !important;
        gap: 4px !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        transition: all 0.2s ease !important;
    }
    
    .shorts-action-btn-horizontal:active {
        transform: scale(0.95) !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .shorts-action-btn-horizontal .action-icon {
        font-size: 18px !important;
    }
    
    .shorts-action-btn-horizontal .action-label {
        font-size: 9px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        opacity: 0.9 !important;
    }
    
    .shorts-nav-arrow {
        display: none !important;
    }
    
    /* Hide old vertical panel on mobile */
    .shorts-engagement-panel {
        display: none !important;
    }
    
    /* Prevent horizontal scroll */
    .main-content {
        overflow-x: hidden !important;
    }
    
    /* Hide sidebar on shorts page mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Light theme adjustments for mobile shorts */
    .theme-light .shorts-viewer {
        background: linear-gradient(180deg, #f0f0f5 0%, #e8e8f0 100%) !important;
    }
    
    .theme-light .shorts-video-frame {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 
                    0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    }
    
    .theme-light .shorts-engagement-panel-below {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
                    0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    }
    
    .theme-light .shorts-action-btn-horizontal {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.03) 100%) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        color: #1e293b !important;
    }
}

/* ============================================
   FORCE SHARE MODAL DARK THEME
   ============================================ */
.share-modal {
    display: none !important;
}

.share-modal.active {
    display: flex !important;
}

.share-modal-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
}

.share-link-container {
    background: rgba(0, 0, 0, 0.3) !important;
}

.share-link-input {
    color: #ffffff !important;
}

.share-platform {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.share-platform-name {
    color: #ffffff !important;
}

.theme-light .share-modal-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #1e293b !important;
}

.theme-light .share-link-input,
.theme-light .share-platform-name {
    color: #1e293b !important;
}

.theme-light .share-platform {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   Platform-specific embed styles
   ============================================ */

/* TikTok embed styles */
.shorts-player.platform-tiktok {
    background: #000 !important;
}

.shorts-player.platform-tiktok iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
}

.shorts-player.platform-tiktok .tiktok-embed {
    max-width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

/* Instagram embed styles */
.shorts-player.platform-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D) !important;
}

.shorts-player.platform-instagram iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    background: #000;
}

.shorts-player.platform-instagram .instagram-media {
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 auto !important;
}

/* Facebook embed styles */
.shorts-player.platform-facebook {
    background: #1877F2 !important;
}

.shorts-player.platform-facebook iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px !important;
    background: #000;
}

/* Regular video page platform styles */
.video-player.platform-tiktok iframe,
.video-player.platform-instagram iframe,
.video-player.platform-facebook iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Platform badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.platform-badge.youtube {
    background: #ff0000;
    color: #fff;
}

.platform-badge.tiktok {
    background: #000;
    color: #fff;
    border: 1px solid #25F4EE;
}

.platform-badge.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: #fff;
}

.platform-badge.facebook {
    background: #1877F2;
    color: #fff;
}

/* Recommendation Section Styles */
.recommendation-section {
    margin: 32px 0;
    padding: 20px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.location-badge {
    background: var(--bg-hover);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.recommendation-reason {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.video-card:hover .recommendation-reason {
    background: var(--accent);
}

/* YouTube-style Filter Chips */
.filter-chips-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 0 16px 0;
    margin-bottom: 8px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.filter-chips-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 40px;
    flex: 1;
}

.filter-chips-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-chip:hover {
    background: var(--bg-hover);
    border-color: var(--text-secondary);
}

.filter-chip.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.filter-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-scroll-btn:hover {
    background: var(--bg-hover);
    transform: translateY(-50%) scale(1.05);
}

.filter-scroll-left {
    left: 0;
}

.filter-scroll-right {
    right: 0;
}

/* Hide scroll buttons on mobile */
@media (max-width: 768px) {
    .filter-scroll-btn {
        display: none;
    }
    
    .filter-chips-scroll {
        padding: 0 8px;
    }
    
    .filter-chip {
        padding: 6px 12px;
        font-size: 13px;
    }
}
