/* ========================================
   MODERN VIDEO HUB - COMPLETE CSS
   ULTRA COMPACT VERSION + A-Z + SEARCH PILLS
   16:9 Aspect Ratio | 4 Columns @ 1280px
======================================== */

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #6a4bc6;
    --bg-dark: #16161a;
    --bg-card: #25254d;
    --bg-darker: #181836;
    --text-light: #e0e1dd;
    --text-gray: #b8b8b8;
    --text-white: #ffffff;
    --accent-blue: #a7c7e7;
    --accent-gold: #f5b041;
    --hover-link: #7cd2ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER (Vékonyabb, modern) ===== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-weight: 800;
    font-size: 28px;
    color: var(--text-white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-icon {
    margin-right: 8px;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ===== NAVIGATION ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
}

nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a:focus {
    color: var(--hover-link);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-white);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ===== AKTÍV MENÜ (MINDEN KÉSZÜLÉKEN) ===== */
nav a.active {
    color: #FFC107;
    font-weight: 700;
}

nav a.active::after {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 768px) {
    nav ul {
        gap: 18px; /* Kisebb gap */
    }
    
    nav a {
        font-size: 15px; /* Kisebb szöveg */
    }
    
    /* Aktív link mobil/tableten is ugyanúgy működik */
    nav a.active {
        color: #FFC107;
        font-weight: 700;
    }
    
    nav a.active::after {
        width: 100%;
        height: 3px;
        background: var(--primary-color);
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    nav ul {
        gap: 12px; /* Még kisebb gap */
        font-size: 14px;
    }
    
    nav a {
        font-size: 14px; /* Még kisebb szöveg */
    }
    
    nav a::after {
        bottom: -3px; /* Vonal közelebb */
        height: 2px; /* Vékonyabb */
    }
    
    /* Aktív link mobil/tableten is ugyanúgy működik */
    nav a.active {
        color: #FFC107;
        font-weight: 700;
    }
    
    nav a.active::after {
        width: 100%;
        height: 2px; /* Mobil: vékonyabb vonal */
        background: var(--primary-color);
    }
}


/* ===== SEARCH BOX (JAVÍTOTT) ===== */
.search-box {
    display: flex;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.search-box form {
    display: flex;
    width: 100%;
    gap: 0;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    min-width: 200px;
    font-size: 15px;
}

.search-box input[type="text"]::placeholder {
    color: #999;
}

.search-box input[type="text"]:focus {
    outline: none;
    background-color: #fff;
}

.search-box button {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 0 18px;
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: rgba(0, 0, 0, 0.4);
}

.search-box button svg {
    width: 18px;
    height: 18px;
}

/* ===== PAGE HEADER (ULTRA SZŰK) ===== */
.page-header {
    margin: 20px 0 12px 0;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-bar,
.month-selector {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    flex-wrap: wrap;
    align-items: center;
}

.month-selector label {
    font-weight: 600;
    color: var(--text-gray);
}

.filter-bar select,
.month-selector select {
    background: var(--bg-card);
    color: var(--text-white);
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-bar select:hover,
.month-selector select:hover {
    border-color: var(--primary-color);
    background: var(--bg-darker);
}

.total-count {
    margin: 6px 0 12px 0;
    color: var(--text-gray);
    font-size: 16px;
}

/* ===== GRID LAYOUTS (ULTRA SZŰK GAP) ===== */
.channel-grid,
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 25px;
    margin-top: 12px;
}

/* ===== CHANNEL CARD (ULTRA KOMPAKT) ===== */
.channel-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.channel-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

.channel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.channel-card:hover .channel-thumb img {
    transform: scale(1.1);
}

.channel-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, rgba(106, 75, 198, 0.95), rgba(255, 107, 107, 0.95));
    color: var(--text-white);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.channel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 16px 12px;
}

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

.channel-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 3px 15px rgba(255, 107, 107, 0.4);
}

.channel-details {
    width: 100%;
}

.channel-details h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0px;
    line-height: 1.1;
}

.channel-details .subscribers {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.1;
    margin-top: 2px;
}

/* ===== VIDEO CARD ===== */
.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(106, 75, 198, 0.4);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.video-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-icon {
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* ===== VIDEO DURATION & QUALITY (JAVÍTOTT) ===== */
.duration,
.quality {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-white);
    font-weight: 700;
    z-index: 10;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.duration {
    bottom: 10px;
    right: 10px;
}

.quality {
    top: 10px;
    left: 10px;
    background: var(--primary-color);
}

.video-info {
    padding: 14px 16px;
}

.video-info h3 {
    font-size: 15px;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.separator {
    color: #555;
    font-weight: 700;
}

.rating {
    color: var(--accent-gold);
    font-weight: 700;
}

.channel {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ===== A-Z CATEGORIES SECTION ===== */
.az-categories-section {
    margin: 40px 0;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 12px;
}

.az-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.az-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.az-item {
    padding: 0;
}

.az-link {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent;
}

.az-link:hover {
    background: var(--bg-darker);
    color: var(--text-white);
    transform: translateX(4px);
}

.az-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
}

.az-count {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== SEARCH PILLS (lila gombok) ===== */
.recent-searches-section,
.popular-searches-section {
    margin: 40px 0;
}

.search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: var(--text-white);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-pill:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-pill:active {
    transform: translateY(-1px) scale(1.02);
}

/* ===== SEO TEXT SECTIONS ===== */
.seo-section {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.seo-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin: 30px 0 15px 0;
}

.seo-section p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.seo-section a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.seo-section a:hover {
    color: var(--hover-link);
    text-decoration: none;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.page-link {
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    transform: translateY(-2px);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
}

.prev-next {
    background: var(--bg-darker);
}

.dots {
    pointer-events: none;
    background: transparent;
    box-shadow: none;
}

/* ===== VIDEO PAGE ===== */
.video-page {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-top: 30px;
}

.video-main {
    width: 100%;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-details h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.3;
}

.video-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-stats .rating {
    color: var(--accent-gold);
    font-weight: 700;
}

.video-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    color: var(--text-light);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action:hover {
    border-color: var(--primary-color);
    background: var(--bg-darker);
    transform: translateY(-2px);
}

.btn-like:hover {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-favorite:hover {
    background: var(--accent-gold);
    color: var(--text-white);
    border-color: var(--accent-gold);
}

/* ===== CHANNEL BAR ===== */
.channel-bar {
    margin-bottom: 25px;
}

.channel-info-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 10px;
}

.channel-info-bar .channel-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.channel-info-bar .channel-details {
    flex: 1;
}

.channel-info-bar .channel-details h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.channel-info-bar .channel-details .subscribers {
    font-size: 13px;
    color: var(--text-gray);
}

.btn-subscribe {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* ===== VIDEO DESCRIPTION ===== */
.video-description {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

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

.video-description p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.tags {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-darker);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-blue);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.video-meta-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-meta-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.video-meta-info strong {
    color: var(--primary-color);
}

/* ===== COMMENTS ===== */
.comments-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
}

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

.comments-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
}

.sort-comments {
    background: var(--bg-darker);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.comment-input {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-darker);
}

.comment-input input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-darker);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
}

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

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-white);
    font-size: 14px;
}

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

.comment-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-like,
.comment-reply {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s ease;
}

.comment-like:hover,
.comment-reply:hover {
    color: var(--primary-color);
}

.load-more-comments {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    color: var(--text-light);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.load-more-comments:hover {
    border-color: var(--primary-color);
    background: var(--bg-card);
}

/* ===== RELATED VIDEOS ===== */
.related-videos h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.related-video {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-video:hover {
    background: var(--bg-darker);
    transform: translateX(5px);
}

.related-thumb {
    position: relative;
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-darker);
}

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

.related-thumb .duration {
    bottom: 6px;
    right: 6px;
    font-size: 11px;
    padding: 3px 7px;
}

.related-thumb .quality {
    top: 6px;
    left: 6px;
    font-size: 10px;
    padding: 3px 7px;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.related-info .channel,
.related-info .views {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 3px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-darker);
    padding: 40px 0 0 0;
    margin-top: 60px;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* ===== FOOTER LEGAL BAR ===== */
.footer-legal {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.footer-legal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-links a {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary-color);
}

.footer-legal-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.6;
    max-width: 900px;
}

.footer-legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-legal-text a:hover {
    color: var(--hover-link);
}

.footer-badges {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-badge {
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-badge img {
    height: 30px;
    width: auto;
}

.footer-badge-text {
    font-size: 11px;
    color: var(--text-gray);
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 15px;
}

/* ===== RESPONSIVE - 1280px (4 COLUMNS GUARANTEED) ===== */
@media (min-width: 1280px) {
    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .video-page {
        grid-template-columns: 1fr;
    }

    .az-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

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

    .related-videos h3 {
        grid-column: 1 / -1;
    }

    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* SEARCH BOX RESPONSIVE FIX */
    .search-box {
        width: 100%;
    }

    .search-box form {
        width: 100%;
    }

    .search-box input[type="text"] {
        width: 100%;
        min-width: 0;
    }

    /* DURATION RESPONSIVE */
    .duration {
        bottom: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .az-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .az-categories-section {
        padding: 20px;
    }

    .search-pill {
        padding: 10px 18px;
        font-size: 13px;
    }

    .seo-section {
        padding: 20px;
    }

    .seo-section h2 {
        font-size: 22px;
    }

    .seo-section h3 {
        font-size: 18px;
    }

    .seo-section p {
        font-size: 15px;
    }

    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .video-details h1 {
        font-size: 22px;
    }

    .video-actions {
        flex-wrap: wrap;
    }

    .btn-action {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
    }

    .related-videos {
        grid-template-columns: 1fr;
    }

    .related-thumb {
        width: 140px;
    }

    .footer-legal-links {
        gap: 10px;
    }

    .footer-legal-links a {
        font-size: 12px;
        padding: 6px 12px;
    }

    .footer-legal-text {
        font-size: 12px;
    }

    .footer-badges {
        flex-direction: column;
    }
}

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

    /* DURATION EXTRA SMALL */
    .duration {
        bottom: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .az-categories-grid {
        grid-template-columns: 1fr;
    }

    .search-pills {
        gap: 8px;
    }

    .search-pill {
        padding: 8px 16px;
        font-size: 12px;
    }

    .logo {
        font-size: 26px;
    }

    nav ul {
        font-size: 14px;
        gap: 12px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .video-details h1 {
        font-size: 18px;
    }

    .btn-action {
        flex: 1 1 100%;
    }

    .channel-info-bar {
        flex-direction: column;
        text-align: center;
    }

    .btn-subscribe {
        width: 100%;
    }

    .pagination {
        gap: 8px;
    }

    .page-link {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ===== END OF CSS ===== */