/* ============================================
   MODERN GRANNYWILDPORN.COM CSS
   Responsive Design - Mobile First Approach
   ============================================ */

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

html {
    min-width: 320px;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-width: 320px;
    height: 100%;
    color: #68355f;
    background: #f5e8e4;
    background: linear-gradient(to bottom, #f5e8e4 0%, #ebdcd8 50%, #dec0b9 100%);
    background-attachment: fixed;
}

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

a:hover {
    color: #d64f74;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === CONTAINER === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === HEADER === */
header {
    background: #dec0b9;
    background: linear-gradient(180deg, #dec0b9 0%, #ebdcd8 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* === HAMBURGER MENU === */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
    z-index: 1001;
    order: 1;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: #68355f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* === LOGO === */
.logo {
    order: 2;
    flex: 0 0 auto;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    color: #ef5f86;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo a:hover {
    color: #ff799c;
}

/* === NAVIGATION === */
nav {
    order: 3;
    flex: 1 1 auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    position: relative;
}

nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: #68355f;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    background: rgba(239, 95, 134, 0.15);
    color: #ef5f86;
}

nav svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* === DROPDOWN NAVIGATION === */
.dropdown-nav {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    width: 14px !important;
    height: 14px !important;
    transition: transform 0.3s ease;
}

.dropdown-nav:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* === MEGA DROPDOWN === */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 15px;
    min-width: 600px;
    max-width: 800px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-nav:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

.mega-dropdown-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mega-column a {
    padding: 3px 8px;
    color: #68355f;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.mega-column a:hover {
    background: rgba(239, 95, 134, 0.1);
    color: #ef5f86;
    transform: translateX(4px);
}

.mega-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 95, 134, 0.4);
}

/* === SEARCH BOX === */
.search-box {
    order: 4;
    flex: 0 1 300px;
    max-width: 350px;
    min-width: 250px;
}

.search-box form {
    position: relative;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px 50px 12px 16px;
    border: 2px solid #f8eeeb;
    border-radius: 25px;
    background: #f8eeeb;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: #fff;
    border-color: #ef5f86;
    box-shadow: 0 0 0 3px rgba(239, 95, 134, 0.1);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 95, 134, 0.4);
}

/* === MENU OVERLAY === */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* === MAIN CONTENT === */
main {
    padding: 30px 0;
    min-height: calc(100vh - 400px);
}

/* === PAGE HEADER === */
.page-header {
    /* margin-bottom: 30px; */
    text-align: left;
}

.page-header h1,
.page-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #68355f;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    color: #916c62;
}

/* === CHANNEL GRID (Categories) === */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.channel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.channel-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.channel-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.channel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px 10px 8px;
}

.video-count {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.channel-info {
    padding: 12px;
}

.channel-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #68355f;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === VIDEO GRID === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio for 320x240 */
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.video-info {
    padding: 12px;
}

.video-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: #68355f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
}

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

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #a8867d;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #916c62;
    transform: translateY(-2px);
}

.page-link.active {
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    box-shadow: 0 4px 12px rgba(239, 95, 134, 0.4);
}

/* === SEO SECTION === */
.seo-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.seo-section h2,
.seo-section h3 {
    color: #68355f;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.seo-section h3 {
    font-size: 20px;
    margin-top: 25px;
}

.seo-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.seo-section a {
    color: #ef5f86;
    font-weight: 600;
    text-decoration: underline;
}

.seo-section a:hover {
    color: #d64f74;
}

/* === A-Z CATEGORIES SECTION === */
.az-categories-section {
    margin: 50px 0;
}

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

.az-column {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.az-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.az-link:hover {
    background: rgba(239, 95, 134, 0.1);
    transform: translateX(4px);
}

.az-name {
    font-size: 14px;
    color: #68355f;
    text-transform: capitalize;
}

.az-count {
    font-size: 12px;
    color: #a44083;
    font-weight: 600;
}

/* === RECENT SEARCHES === */
.recent-searches-section {
    margin: 40px 0;
}

.search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.search-pill {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 95, 134, 0.4);
}

/* === FOOTER === */
footer {
    background: #dec0b9;
    background: linear-gradient(180deg, #ebdcd8 0%, #dec0b9 100%);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-legal {
    text-align: center;
}

.footer-legal-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.footer-legal-links a {
    color: #ef5f86;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.footer-legal-links a:hover {
    background: rgba(239, 95, 134, 0.1);
}

.footer-legal-text {
    margin: 20px 0;
    color: #68355f;
    font-size: 13px;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-badge img {
    height: 35px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-badge img:hover {
    opacity: 1;
}

.copyright {
    margin-top: 20px;
    color: #916c62;
    font-size: 13px;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #916c62, #a8867d);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    display: flex;
}

/* === BANNER AD === */
.banner-ad {
    width: 300px;
    height: 100px;
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* === TABLET LANDSCAPE (1024px) === */
@media screen and (max-width: 1024px) {
    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .mega-dropdown {
        min-width: 700px;
    }

    .mega-dropdown-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* === TABLET PORTRAIT (768px) === */
@media screen and (max-width: 768px) {
    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .page-header h1,
    .page-header h2 {
        font-size: 22px;
    }

    .seo-section {
        padding: 20px;
    }

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

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

    .mega-dropdown {
        min-width: 90vw;
    }

    .mega-dropdown-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === TABLET/SMALL DESKTOP (1101px - 1280px) - Compact Header === */
@media screen and (min-width: 1101px) and (max-width: 1280px) {
    header .container {
        gap: 10px;
        flex-wrap: nowrap; /* Prevent search bar from wrapping */
    }

    .logo a {
        font-size: 26px;
    }

    nav a {
        padding: 8px 10px;
        font-size: 13px;
        gap: 4px;
    }

    nav svg {
        width: 16px;
        height: 16px;
    }

    nav a span {
        /* Hide text, show only icons if needed - optional */
    }

    .search-box {
        max-width: 200px;
        flex-shrink: 1;
    }

    .search-box input {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* === MOBILE (1100px and below) - Navigation Toggle === */
@media screen and (max-width: 1100px) {
    .hamburger-menu {
        display: flex;
    }

    header .container {
        flex-wrap: wrap;
    }

    .logo {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .logo a {
        font-size: 28px;
    }

    nav {
        order: 5;
        flex: 1 1 100%;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 80px 0 20px;
        z-index: 1000;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    nav a {
        padding: 15px 20px;
        border-radius: 0;
        justify-content: flex-start;
    }

    .dropdown-nav:hover .mega-dropdown {
        display: none;
    }

    .mega-dropdown {
        position: static;
        transform: none;
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 10px;
        box-shadow: none;
        border-radius: 0;
        background: #f9f9f9;
        display: none; /* Hide by default on mobile - fixes menu items visibility */
    }

    .dropdown-nav.active .mega-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .mega-dropdown-inner {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .mega-footer {
        margin-top: 10px;
        padding-top: 10px;
    }

    .search-box {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 10px;
    }
}

/* === MOBILE (640px) === */
@media screen and (max-width: 640px) {
    .page-header h1,
    .page-header h2 {
        font-size: 20px;
    }

    .search-box input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* === MOBILE SMALL (479px) === */
@media screen and (max-width: 479px) {
    .channel-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

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

    .logo a {
        font-size: 24px;
    }

    .page-header h1,
    .page-header h2 {
        font-size: 18px;
    }

    .seo-section {
        padding: 15px;
    }

    .pagination {
        gap: 5px;
    }

    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        padding: 0 8px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .banner-ad {
        display: block;
    }
}

/* === MOBILE VERY SMALL (320px) === */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .logo a {
        font-size: 20px;
    }

    main {
        padding: 20px 0;
    }
}

/* === LAZY LOADING === */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* === STREAM ROTATOR (Thumbnail Animation) === */
.channel-thumb img,
.video-thumb img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Prevent transform on hover when stream rotation is active */
.channel-card:hover .channel-thumb img.rotating {
    transform: scale(1) !important;
}

/* Smooth image swap during rotation */
.channel-thumb img[id],
.video-thumb img[id] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* ============================================
   VIDEO PAGE STYLES
   ============================================ */

/* === VIDEO PAGE LAYOUT === */
.video-page {
    padding-top: 20px;
}

.video-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    margin-bottom: 30px;
}

/* === VIDEO MAIN (Left Side) === */
.video-main {
    min-width: 0; /* Prevents overflow */
}

.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.video-player .embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-player .embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === VIDEO DETAILS === */
.video-details {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-details h1 {
    font-size: 22px;
    font-weight: 700;
    color: #68355f;
    line-height: 1.4;
    margin: 0;
}

/* === VIDEO DESCRIPTION === */
.video-description {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: #68355f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e8e5;
}

.video-description p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 15px;
}

/* === VIDEO TAGS === */
.video-description .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.video-description .tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-description .tags .tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 95, 134, 0.4);
}

/* === VIDEO META INFO === */
.video-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0e8e5;
}

.video-meta-info p {
    margin: 0;
    font-size: 14px;
    color: #916c62;
}

.video-meta-info strong {
    color: #68355f;
    font-weight: 600;
}

/* === VIDEO SIDEBAR (Right Side) === */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-banner {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

/* === RELATED VIDEOS SECTION === */
.video-page h3 {
    font-size: 20px;
    font-weight: 700;
    color: #68355f;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.related-videos .video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-videos .video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Related videos - same style as homepage */
.related-videos .video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.related-videos .video-info {
    padding: 12px;
}

.related-videos .video-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: #68355f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px;
    text-transform: none;
}

/* ============================================
   VIDEO PAGE RESPONSIVE
   ============================================ */

/* === TABLET LANDSCAPE (1024px) === */
@media screen and (max-width: 1024px) {
    .video-content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }

    .related-videos {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* === TABLET PORTRAIT (768px) === */
@media screen and (max-width: 768px) {
    .video-content-wrapper {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .sidebar-banner {
        flex: 0 1 300px;
        min-height: 250px;
    }

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

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

    .video-description h3 {
        font-size: 16px;
    }
}

/* === MOBILE (640px) === */
@media screen and (max-width: 640px) {
    .video-page {
        padding-top: 15px;
    }

    .video-details,
    .video-description {
        padding: 15px;
        border-radius: 10px;
    }

    .video-player {
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .video-meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .video-description .tags .tag {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* === MOBILE SMALL (479px) === */
@media screen and (max-width: 479px) {
    .related-videos {
        grid-template-columns: 1fr;
    }

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

    .video-sidebar {
        flex-direction: column;
        align-items: center;
    }

    .sidebar-banner {
        width: 100%;
        max-width: 300px;
    }
}
