/* ============================================
   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 10px;
}

/* === 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: 70vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.mega-dropdown-inner::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.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 0 300px;
    max-width: 300px;
    min-width: 250px;
    width: 300px;
    position: relative;
    overflow: visible !important;
}

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

.search-box input {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 50px 12px 16px;
    border: 2px solid #f8eeeb;
    border-radius: 25px;
    background: #f8eeeb;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.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: 20px;
    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: 12px;
    margin-bottom: 30px;
}

/* Desktop (≥1200px) - 4 thumbnails per row - DEFAULT ABOVE */

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

.channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.channel-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for 320x180 */
    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.03);
}

.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: 12px;
    margin-bottom: 30px;
}

/* Desktop (≥1200px) - 4 thumbnails per row - DEFAULT ABOVE */

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

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for 320x180 */
    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;
    text-transform: none; /* Keep title case as provided - no uppercase */
}

/* === 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
   ============================================ */

/* === LAPTOP (1000px - 1199px) === */
@media screen and (max-width: 1199px) {
    /* 4 thumbnails per row maintained for Laptop */
    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* === TABLET (768px - 999px) === */
@media screen and (max-width: 999px) {
    /* 3 thumbnails per row for Tablet */
    .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);
    }
}

/* === MOBILE (<768px) === */
@media screen and (max-width: 767px) {
    /* 2 thumbnails per row for Mobile - NEVER 1 */
    .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) {
    /* Keep 2 columns on mobile - NEVER go to 1 column */
    .channel-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .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;
    background: #2a1f28;
}

img:not(.lazy) {
    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 use SAME styles as homepage .video-card - no overrides */

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

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

    /* Sidebar banners display in row, 2 banners side by side */
    .video-sidebar {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .sidebar-banner {
        flex: 0 1 calc(50% - 10px);
        min-height: 250px;
        max-width: 300px;
    }

    /* Related videos follow homepage breakpoints - no override needed */

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

/* === MOBILE (767px and below) === */
@media screen and (max-width: 767px) {
    /* Sidebar shows only 1 banner (hide second banner) */
    .video-sidebar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .sidebar-banner {
        flex: 0 1 auto;
        width: 100%;
        max-width: 300px;
        min-height: 250px;
    }

    /* Hide second banner on mobile */
    .sidebar-banner:nth-child(2) {
        display: none;
    }

    /* Related videos follow homepage breakpoints - no override needed */

    .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 follow homepage breakpoints - no override needed */

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

/* ===== VIDEO PLAYER PAGE ===== */
.video-page-wrapper {
    max-width: 944px;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-player-container {
    position: relative;
    padding-top: 56.25%;
    overflow: visible;
    background: #000;
}

.video-player-container #fluid_video_wrapper_player {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}

.video-description-box {
    background: #fff;
    padding: 20px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 20px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #f0e0dc;
    border-bottom: 1px solid #f0e0dc;
    font-size: 13px;
    color: #68355f;
}

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

.video-meta .like-btn,
.video-meta .dislike-btn {
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.video-meta .like-btn:hover { background: rgba(76, 175, 80, 0.1); }
.video-meta .dislike-btn:hover { background: rgba(244, 67, 54, 0.1); }

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.video-tags a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f8eeeb;
    color: #68355f;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.video-tags a:hover {
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    color: #fff;
}

/* Fake player container */
.video-fake {
    background-color: #000;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: visible !important;
    cursor: pointer;
}

/* Fake Player - Play Button Hover + Nudge Animation */
#hlsplayer .big-button {
    transition: transform 0.2s ease;
}

#hlsplayer .big-button:hover {
    animation: playButtonNudge 0.6s ease-in-out;
}

#hlsplayer .big-button:hover img {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes playButtonNudge {
    0% { transform: scale(1); }
    20% { transform: scale(1.12) rotate(-3deg); }
    40% { transform: scale(1.05) rotate(2deg); }
    60% { transform: scale(1.08) rotate(-1deg); }
    80% { transform: scale(1.03) rotate(0.5deg); }
    100% { transform: scale(1.06); }
}

@media (min-width: 1436px) {
    .video-page-wrapper { max-width: 1180px; }
}

@media (min-width: 1672px) {
    .video-page-wrapper { max-width: 1416px; }
}

@media (max-width: 600px) {
    .video-page-wrapper {
        margin: 0;
        max-width: none;
        border-radius: 0;
    }

    .video-description-box {
        padding: 15px;
    }

    .video-meta {
        gap: 10px;
        font-size: 12px;
    }
}

/* ===== SORT FILTERS (Category Page) ===== */
.sort-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 25px;
    background: #f8eeeb;
    color: #68355f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: rgba(239, 95, 134, 0.1);
    border-color: rgba(239, 95, 134, 0.3);
    color: #ef5f86;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(239, 95, 134, 0.3);
}

@media (max-width: 767px) {
    .sort-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ===== NATIVE AD RESPONSIVE ===== */
.native-ad-slot {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  grid-column: 1 / -1;
}

.native-ad-slot ins {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================
   SEO TEXT — READ MORE / SHOW LESS (Pure CSS)
   ============================================ */

.seo-text {
    background: #fff;
    border-radius: 12px;
    padding: 25px 30px 15px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.seo-text h2 {
    color: #68355f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 20px;
}

.seo-text h2:first-child {
    margin-top: 0;
}

.seo-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Hidden checkbox controls the toggle */
.seo-toggle-checkbox {
    display: none;
}

/* Collapsed state: limit height with fade */
.seo-text-content {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

/* Gradient fade overlay when collapsed */
.seo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, #fff 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When expanded */
.seo-toggle-checkbox:checked ~ .seo-text-content {
    max-height: 2000px;
}

.seo-toggle-checkbox:checked ~ .seo-text-content .seo-fade {
    opacity: 0;
}

/* Toggle button */
.seo-btn {
    display: flex;
    justify-content: center;
    padding: 10px 0 5px;
    cursor: pointer;
}

.seo-btn span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 24px;
    background: #fff;
    border: 2px solid rgba(239, 95, 134, 0.3);
    border-radius: 25px;
    color: #ef5f86;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.seo-btn span:hover {
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 95, 134, 0.3);
    transform: translateY(-1px);
}

/* Show/Hide toggle text */
.seo-btn .show-less {
    display: none;
}

.seo-toggle-checkbox:checked ~ .seo-btn .show-more {
    display: none;
}

.seo-toggle-checkbox:checked ~ .seo-btn .show-less {
    display: inline-flex;
}

@media (max-width: 767px) {
    .seo-text {
        padding: 20px 15px 10px;
    }

    .seo-text h2 {
        font-size: 16px;
    }

    .seo-text p {
        font-size: 13px;
    }

    .seo-text-content {
        max-height: 100px;
    }
}

/* ============================================
   ALPHABETICAL TABS — GWP ROSE THEME
   ============================================ */

/* Original category list (hidden when JS enhances) */
.full-category-list .category-columns ul {
    list-style: none;
    columns: 4;
    column-gap: 20px;
    padding: 0;
}

.full-category-list .category-columns ul li {
    break-inside: avoid;
    padding: 3px 0;
}

.full-category-list .category-columns ul li a {
    color: #68355f;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.full-category-list .category-columns ul li a:hover {
    color: #ef5f86;
}

/* Hide original columns when JS enhanced */
.full-category-list.alpha-enhanced .category-columns {
    display: none !important;
}

/* Search box */
.alpha-search-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: center;
}

.alpha-search {
    width: 100%;
    max-width: 420px;
    padding: 10px 16px 10px 40px;
    background: #fff;
    border: 2px solid #f0e8e5;
    border-radius: 25px;
    color: #68355f;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.alpha-search::placeholder {
    color: #a8867d;
}

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

.alpha-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8867d;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Tab bar */
.alpha-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0;
    padding: 14px 8px;
    background: rgba(104, 53, 95, 0.06);
    border-radius: 8px;
}

/* Individual tab button */
.alpha-tab {
    background: transparent;
    color: #68355f;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 10px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 36px;
    text-align: center;
    line-height: 1;
    position: relative;
}

.alpha-tab:hover {
    background: rgba(239, 95, 134, 0.15);
    color: #ef5f86;
}

.alpha-tab.active {
    background: linear-gradient(135deg, #ef5f86 0%, #ff799c 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(239, 95, 134, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.alpha-tab.disabled {
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
}

/* Category count badge */
.alpha-tab .tab-count {
    font-size: 9px;
    font-weight: 400;
    opacity: 0.5;
    margin-left: 2px;
    vertical-align: super;
}

.alpha-tab.active .tab-count {
    opacity: 0.9;
}

/* Status bar */
.alpha-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    margin: 14px 0;
    border-top: 1px solid rgba(104, 53, 95, 0.08);
    border-bottom: 1px solid rgba(104, 53, 95, 0.08);
}

.alpha-status-text {
    font-size: 13px;
    color: #916c62;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.alpha-status-count {
    color: #ef5f86;
    font-weight: 700;
    font-size: 14px;
}

.alpha-status-letter {
    color: #68355f;
    font-weight: 700;
}

/* Filtered categories container */
.alpha-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    min-height: 50px;
    padding: 8px 0 4px 0;
    animation: alphaFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Individual category tag — glassmorphism rose theme */
.alpha-categories a {
    display: inline-block;
    color: #68355f;
    font-size: 13.5px;
    padding: 7px 16px;
    text-decoration: none;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(239, 95, 134, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.3;
}

.alpha-categories a:hover {
    background: linear-gradient(135deg, #ef5f86 0%, #ff799c 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(239, 95, 134, 0.4);
    transform: translateY(-2px) scale(1.03);
}

.alpha-categories a:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(239, 95, 134, 0.3);
}

/* Empty / no results state */
.alpha-no-results {
    text-align: center;
    color: #a8867d;
    font-size: 14px;
    padding: 30px 20px;
    font-style: italic;
}

/* Show More / Show Less button */
.alpha-toggle-wrap {
    display: flex;
    justify-content: center;
    padding: 16px 0 4px 0;
}

.alpha-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #fff;
    border: 2px solid rgba(239, 95, 134, 0.3);
    border-radius: 25px;
    color: #ef5f86;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.alpha-toggle-btn:hover {
    background: linear-gradient(135deg, #ef5f86, #ff799c);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 95, 134, 0.3);
    transform: translateY(-1px);
}

.alpha-toggle-btn .toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 11px;
}

.alpha-toggle-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Gradient fade overlay when collapsed */
.alpha-categories.collapsed {
    position: relative;
    overflow: hidden;
}

.alpha-categories.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, #f5e8e4 100%);
    pointer-events: none;
    z-index: 1;
}

/* === ALPHA TABS RESPONSIVE === */

/* Tablet */
@media (max-width: 1199px) {
    .alpha-tab {
        padding: 6px 9px;
        font-size: 12px;
        min-width: 32px;
    }

    .alpha-categories a {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .alpha-search {
        font-size: 13px;
        padding: 9px 14px 9px 36px;
    }

    .alpha-tabs {
        gap: 3px;
        padding: 10px 5px;
    }

    .alpha-tab {
        padding: 5px 7px;
        font-size: 11px;
        min-width: 28px;
    }

    .alpha-categories a {
        font-size: 12.5px;
        padding: 6px 12px;
    }

    .full-category-list .category-columns ul {
        columns: 2;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .alpha-tab {
        padding: 4px 6px;
        font-size: 10px;
        min-width: 24px;
    }

    .alpha-categories a {
        font-size: 12px;
        padding: 5px 10px;
    }

    .alpha-toggle-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .full-category-list .category-columns ul {
        columns: 1;
    }
}