:root {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #ffffff;
    --brand-primary: #e91e63;
    --brand-secondary: #ff1744;
    --card-width-desktop: 280px;
    --card-width-tablet: 220px;
    --card-width-mobile: 160px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}



.header {
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.98), rgba(26, 26, 46, 0.95));
    backdrop-filter: saturate(1.4) blur(20px);
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}



.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-categories {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}




.admin-link {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: none;
    /* Hidden by default for security */
}

.admin-link.authorized {
    display: inline-block;
    /* Show only when authorized */
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: none;
    /* Remove gradient background */
    -webkit-text-fill-color: unset;
}

.logo img {
    height: 60px;
    /* Set the desired height for desktop */
    width: auto;
    /* Maintain the aspect ratio */
    object-fit: contain;
    /* Ensure the logo fits perfectly */
    transition: transform 0.3s ease;
}


.logo:hover img {
    transform: scale(1.05);
    /* Optional: add a subtle hover effect */
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-box {
    width: 100%;
    position: relative;
    display: block;
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    z-index: 2;
    transition: opacity 0.3s ease;
    width: 16px;
    height: 16px;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: rgba(233, 30, 99, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.3), 0 0 0 4px rgba(233, 30, 99, 0.1);
}

.search-input:focus+.search-icon,
.search-box:focus-within .search-icon {
    opacity: 0.9;
    color: #e91e63;
}

.categories {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    text-align: center;
    display: none;
    /* Hidden on desktop */
}

/* Show categories section on mobile only */
@media (max-width: 768px) {
    .categories {
        display: block;
    }

    .header-categories {
        display: none;
        /* Hide header categories on mobile */
    }
}

/* ============================================
   CONTAINER & CONTENT
   ============================================ */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.content {
    padding: 1rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    padding: 0 0.5rem;
}

.category-btn {
    flex-shrink: 0;
    /* Prevent buttons from shrinking */
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    min-width: 100px;
    text-align: center;
}

.category-filters {
    display: flex;
    flex-wrap: nowrap !important;
    /* Force single line */
    gap: 1.2rem;
    justify-content: center;
    /* Centered */
    margin-bottom: 2.5rem;
    padding: 1rem;
    overflow-x: auto !important;
    /* Enable horizontal scroll */
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 30, 99, 0.5) transparent;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.movie-year-tabs {
    display: none;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem auto 2rem;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
}

.movie-year-tab-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.55rem 1.2rem;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.movie-year-tab-btn:hover {
    background: rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
}

.movie-year-tab-btn.active {
    background: linear-gradient(135deg, #e91e63, #ff1744);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.25);
}

.sports-filter-tabs {
    display: none;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.5rem auto 2rem;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
}

.sports-filter-btn {
    background: rgba(78, 205, 196, 0.12);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: rgba(229, 250, 248, 0.9);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sports-filter-btn:hover {
    background: rgba(78, 205, 196, 0.25);
    border-color: rgba(78, 205, 196, 0.55);
    color: #ffffff;
    transform: translateY(-2px);
}

.sports-filter-btn.active {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #0d1321;
    box-shadow: 0 10px 20px rgba(69, 183, 209, 0.25);
}

/* Hide scrollbar for Chrome, Safari and Opera */

.category-btn {
    flex-shrink: 0 !important;
    /* Prevent buttons from shrinking */
    white-space: nowrap;
    min-width: auto;
    /* Remove fixed width constraints */
}




.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(233, 30, 99, 0.4);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(233, 30, 99, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.category-btn.active {
    background: linear-gradient(135deg, #e91e63, #ff1744);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(233, 30, 99, 0.3),
        0 4px 15px rgba(255, 23, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.category-btn.active::before {
    display: none;
}

.channels-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
    min-height: auto;
    /* Remove any height restrictions */
    overflow: visible;
    /* Ensure content isn't hidden */
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem 1.8rem;
    /* Vertical 2rem, Horizontal 1.8rem */
    padding: 0;
    margin: 0;
    align-items: start;
    /* Changed from center */
    justify-items: center;
    list-style: none;
}

.sports-sections-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sports-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sports-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #4ecdc4;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sports-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem 1.1rem;
    align-items: stretch;
}

.channel-card {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(26, 26, 46, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 400px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
}

.channel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(233, 30, 99, 0.4);
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sports-card {
    height: auto;
    min-height: 0;
    max-width: 360px;
    width: 100%;
    background: #0f111f;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(5, 10, 25, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sports-card::before {
    display: none;
}

.sports-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 30, 99, 0.45);
    box-shadow: 0 24px 44px rgba(6, 12, 28, 0.6);
}

.sports-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.sports-hero img,
.sports-hero-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sports-hero-fallback {
    background: radial-gradient(circle at 30% 20%, rgba(233, 30, 99, 0.45), rgba(15, 16, 32, 0.95));
    color: #fff;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sports-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 9, 20, 0.1) 0%, rgba(5, 9, 20, 0.5) 50%, rgba(5, 9, 20, 0.85) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.sports-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    width: calc(100% - 28px);
}

.sports-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sports-pill.live-pill {
    background: linear-gradient(135deg, #ff3b30, #ff6b6b);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.sports-pill.viewers-pill {
    background: rgba(15, 16, 32, 0.6);
    color: rgba(255, 255, 255, 0.85);
    margin-left: auto;
}

.sports-game-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(16, 24, 44, 0.82);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.4);
    z-index: 2;
}

.sports-play-btn {
    top: auto;
    left: auto;
    right: 16px;
    bottom: 16px;
    transform: translate(0, 0);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    opacity: 0;
    z-index: 2;
}

.sports-card:hover .sports-play-btn {
    opacity: 1;
    transform: translate(0, -2px);
}

.sports-card-body {
    padding: 1.15rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.sports-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sports-card-matchup {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sports-card-subtitle {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: rgba(208, 219, 255, 0.78);
    line-height: 1.5;
}

.sports-card-notes {
    margin: 0.2rem 0 0;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.channel-card:hover .channel-poster {
    transform: scale(1.05);
}

.channel-card:hover::before {
    opacity: 1;
}

.channel-poster-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.channel-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.channel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}


.channel-card:hover .channel-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}




.channel-info {
    padding: 1rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.channel-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #e91e63;
    line-height: 1.3;
    text-align: center;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.channel-title.long-title {
    font-size: 0.9rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}


.channel-title h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}



.channel-image-wrapper,
.channel-overlay,
.channel-content,
.channel-footer,
.channel-background,
.watch-btn {
    display: none !important;
}


.server-badge {
    background: rgba(233, 30, 99, 0.2);
    color: #ba68c8;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
}


.live-badge {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 2px 12px rgba(255, 0, 0, 0.6);
    }
}



.channel-header {
    padding: 1.5rem 1.5rem 0;
    position: relative;
    z-index: 2;
}















.watch-btn {
    background: linear-gradient(45deg, #e91e63, #ff1744);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.watch-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(45deg, #f06292, #ff4569);
}

.watch-btn::before {
    content: '▶';
    font-size: 0.8rem;
}

.movie-card {
    width: 100%;
    max-width: 280px;
    height: auto;
    position: relative;
    margin: 0 auto 2rem auto;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    transition: all 450ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.movie-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}


.movie-poster-wrapper {
    position: relative;
    height: 420px;
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 450ms ease;
    flex-shrink: 0;
}


.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
    display: block;
}

.movie-card:hover .movie-poster-wrapper {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}


.movie-card:hover .movie-poster {
    transform: scale(1.05);
}

.movie-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(233, 30, 99, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}


.movie-play-btn::before {
    content: '▶';
    margin-left: 3px;
}

.movie-card:hover .movie-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}


.movie-play-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.5);
}


.movie-play-btn:active {
    transform: translate(-50%, -50%) scale(1.05);
}



.movie-info {
    padding: 1rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 60px;
    text-align: center;

}

.movie-card:hover .movie-info {
    opacity: 1;
    transform: translateY(0);
}


/* Movie Info Overlay */
.movie-info {
    padding: 1rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 60px;
    /* Ensures space for title */
}


.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fdfeff;

    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}






.movie-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movies-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 3rem 2rem !important;
    padding: 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
    overflow: visible !important;
    max-height: none !important;
    align-items: start !important;
    justify-items: center !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
}

.player-embed-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    max-height: 80vh;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.movie-embed-container,
.tvshow-embed-container {
    width: 100%;
}

.player-embed-wrapper:focus-within {
    outline: 2px solid rgba(233, 30, 99, 0.6);
    outline-offset: 2px;
}

.movie-embed-frame,
.tvshow-embed-frame,
.player-embed-wrapper iframe,
.player-embed-wrapper video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.player-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.player-fullscreen-active {
    width: 100%;
    height: 100%;
}

.player-fullscreen-active .player-embed-wrapper {
    aspect-ratio: auto;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
}

.player-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@supports not (aspect-ratio: 16 / 9) {
    .player-embed-wrapper {
        aspect-ratio: auto;
        padding-top: 56.25%;
        height: 0;
        min-height: 0;
    }

    .player-embed-wrapper iframe,
    .player-embed-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }
}

.movie-sources {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.source-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
}

.source-badge.youtube {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

.source-badge.vimeo {
    background: rgba(26, 183, 234, 0.2);
    color: #74c0fc;
}

.source-badge.dailymotion {
    background: rgba(0, 158, 255, 0.2);
    color: #339af0;
}

.source-badge.embed {
    background: rgba(233, 30, 99, 0.2);
    color: #e91e63;
}



/* TV Show specific styles */
.tvshow-card {
    width: 100%;
    max-width: 280px;
    height: auto;
    position: relative;
    margin: 0 auto 2rem auto;
    background: transparent;
    border-radius: 8px;
    overflow: visible;
    transition: all 450ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.tvshow-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.tvshow-poster-wrapper {
    position: relative;
    height: 420px;
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 450ms ease;
    flex-shrink: 0;
}

.tvshow-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
    display: block;
}

.tvshow-card:hover .tvshow-poster {
    transform: scale(1.05);
}


.tvshow-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(138, 43, 226, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}


.tvshow-card:hover .tvshow-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.tvshow-play-btn:before {
    content: '▶';
    margin-left: 3px;
}


.tvshow-play-btn:hover {
    background: rgba(156, 39, 176, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 30px rgba(156, 39, 176, 0.5);
}

.tvshow-play-btn:active {
    transform: translate(-50%, -50%) scale(1.05);
}


.tvshow-info {
    padding: 1rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 60px;
    text-align: center;
}

.tvshow-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fdfeff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tvshow-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.season-badge {
    background: rgba(138, 43, 226, 0.2);
    color: #ba68c8;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
}

.episode-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}


/* TV Shows Grid - Match Movies Grid */
.tvshows-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 3rem 2rem !important;
    padding: 1rem !important;
    margin: 0 !important;
    width: 100% !important;
    list-style: none !important;
    overflow: visible !important;
    max-height: none !important;
    align-items: start !important;
    justify-items: center !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
}

/* Movie Player Header & Title */
.movie-player-header,
.tvshow-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

.movie-player-title,
.tvshow-player-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #e91e63, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex: 1;
    min-width: 200px;


}

.source-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.source-selector-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.source-selector-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.source-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.source-button:hover {
    background: rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.5);
    color: #fff;
}

.source-button.active {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.85), rgba(255, 107, 107, 0.9));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.35);
}

.source-pill {
    background: rgba(233, 30, 99, 0.12);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.source-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.source-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #e91e63;
}

.source-select option {
    background: #1a1a2e;
    color: white;
}

.season-episode-selector {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.season-select,
.episode-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.season-select:hover,
.episode-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #e91e63;
}

.season-select option,
.episode-select option {
    background: #1a1a2e;
    color: white;
}


/* TV Show Player with Sidebar */
.tvshow-player-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    max-height: 70vh;
}

.tvshow-video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tvshow-sidebar {
    width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
}

.tvshow-sidebar::-webkit-scrollbar {
    width: 8px;
}

.tvshow-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.tvshow-sidebar::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.5);
    border-radius: 4px;
}

.tvshow-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.7);
}

.sidebar-season {
    margin-bottom: 1.5rem;
}

.sidebar-season-title {
    color: #e91e63;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-season-title:hover {
    background: rgba(233, 30, 99, 0.2);
}

.sidebar-season-title.collapsed {
    margin-bottom: 0;
}

.sidebar-episodes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-episodes.hidden {
    display: none;
}

.sidebar-episode {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-episode:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-episode.active {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.3), rgba(255, 23, 68, 0.2));
    border-left: 3px solid #e91e63;
    color: white;
    font-weight: 600;
}

.tvshow-embed-container {
    width: 100%;
}

.player-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    flex-shrink: 0;
}

.player-control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.player-fullscreen-btn {
    background: rgba(233, 30, 99, 0.18);
    border: 1px solid rgba(233, 30, 99, 0.45);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.player-fullscreen-btn:hover {
    background: rgba(233, 30, 99, 0.3);
    border-color: rgba(233, 30, 99, 0.7);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
}

.player-fullscreen-btn svg {
    width: 1rem;
    height: 1rem;
}

@media screen and (max-width: 768px) {
    .player-control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .player-fullscreen-btn {
        width: 100%;
        justify-content: center;
    }

    .source-selector-buttons {
        width: 100%;
    }

    .source-button {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        text-align: center;
    }

    .player-embed-wrapper {
        aspect-ratio: auto;
        height: clamp(320px, 60vh, 440px);
        min-height: clamp(300px, 55vh, 420px);
        max-height: 75vh;
    }
}

@media screen and (max-width: 480px) {
    .source-button {
        flex: 1 1 100%;
    }

    .player-embed-wrapper {
        aspect-ratio: auto;
        height: clamp(300px, 65vh, 460px);
        min-height: clamp(280px, 60vh, 440px);
        max-height: 78vh;
    }
}

.player-embed-wrapper:fullscreen,
.player-embed-wrapper:-webkit-full-screen,
.player-embed-wrapper:-moz-full-screen,
.player-embed-wrapper:-ms-fullscreen {
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    box-shadow: none;
}


/* ============================================
   RESPONSIVE BREAKPOINTS - NO OVERLAP
   ============================================ */

/* Large Desktop (1440px+) */
@media screen and (min-width: 1440px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 5rem 2rem;
    }

    .movie-card {
        max-width: 280px;
    }

    .movie-card:hover {
        transform: scale(1.05) translateY(-10px);
    }

    .movie-play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* Standard Desktop (1024px - 1439px) */
@media screen and (min-width: 1024px) and (max-width: 1439px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 3rem 1.2rem;
    }

    .movie-card {
        max-width: 200px;
    }

    .movie-card:hover {
        transform: scale(1.2) translateY(-10px);
    }

    .movie-play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .movie-title {
        font-size: 0.95rem;
    }
}

/* ============================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(var(--card-width-tablet), 1fr));
        gap: 2.5rem 1.2rem;
    }

    .container {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .movie-card:hover {
        transform: scale(1.2) translateY(-8px);
    }

    .movie-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .movie-title {
        font-size: 1rem;
    }

    .sports-group-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.1rem;
    }

    .sports-hero {
        height: 220px;
    }
}



/* Mobile responsive */
@media (max-width: 968px) {
    .tvshow-player-container {
        flex-direction: column;
        max-height: none;
    }

    .tvshow-sidebar {
        width: 100%;
        max-height: 300px;
        margin-top: 1rem;
    }

    .tvshow-video-section {
        flex: initial;
    }

    .tvshow-embed-container {
        height: 50vh;
        min-height: 300px;
    }

    .player-content {
        padding: 4rem 0.5rem 0.5rem 0.5rem;
        width: 95%;
        max-height: 95vh;
        overflow-y: auto;
    }

    .close-player {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }

    .tvshow-player-header,
    .movie-player-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }

    .sports-card {
        min-height: auto;
    }

    .sports-card-body {
        padding: 1rem 1.2rem 1.2rem;
    }

    .sports-hero {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .sports-group-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .sports-card {
        min-height: 0;
    }

    .sports-hero {
        height: 180px;
    }

    .sports-card-body {
        padding: 0.95rem 1.05rem 1.2rem;
    }

    .sports-card-subtitle {
        font-size: 0.78rem;
    }
}

.player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.player-content {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 1rem 2rem 2rem 2rem;
    max-width: 900px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.player-content>*:not(.close-player) {
    width: 100%;
}

.close-player {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.video-player {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.video-player video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.loading-message {
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, #0f0f23, #1a1a2e);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.7;
}

.visitor-ip {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    opacity: 0.6;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.visitor-ip:hover {
    opacity: 0.9;
    background: rgba(0, 0, 0, 0.6);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e91e63, #ff1744);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(233, 30, 99, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow:
        0 8px 25px rgba(233, 30, 99, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff1744, #ff0844);
}

.back-to-top:active {
    transform: translateY(-1px) scale(1.05);
}

/* Discord Button */
.discord-btn {
    position: fixed;
    bottom: 80px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(88, 101, 242, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.discord-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow:
        0 8px 25px rgba(88, 101, 242, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #6875f5, #5865F2);
}

.discord-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.discord-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Chromecast Button */
.cast-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: none;
    /* Hidden until Cast is available */
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.cast-btn.available {
    display: flex;
}

.cast-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(233, 30, 99, 0.4);
    color: white;
    transform: translateY(-1px);
}

.cast-btn.casting {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cast-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Mobile Gesture Controls */
.gesture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: none;
}

.gesture-overlay.active {
    display: block;
    pointer-events: auto;
}

.gesture-feedback {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 100;
    pointer-events: none;
    animation: gesturePopup 1s ease-out;
}

@keyframes gesturePopup {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    30% {
        opacity: 1;
        transform: scale(1.1);
    }

    70% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.swipe-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-indicator.show {
    opacity: 1;
}

.swipe-indicator .progress {
    height: 100%;
    background: linear-gradient(45deg, #e91e63, #ff1744);
    border-radius: 2px;
    transition: width 0.1s ease;
}

.touch-controls {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.touch-controls.mobile {
    display: flex;
}

.touch-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.touch-btn:active {
    background: rgba(233, 30, 99, 0.7);
    transform: scale(0.95);
}

.double-tap-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.double-tap-overlay.show {
    animation: doubleTapAnimation 0.6s ease-out;
}

@keyframes doubleTapAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Server Selection Styles */
.server-selection {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-selection h4 {
    margin: 0 0 0.8rem 0;
    color: #e91e63;
    font-size: 0.9rem;
    font-weight: 600;
}

.server-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.server-btn,
.embed-server-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

.embed-server-btn {
    background: rgba(78, 205, 196, 0.14);
    border-color: rgba(78, 205, 196, 0.4);
    color: #9cefe0;
}

.server-btn:hover,
.embed-server-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(233, 30, 99, 0.4);
    transform: translateY(-1px);
}

.server-btn.active,
.embed-server-btn.active {
    background: linear-gradient(45deg, #e91e63, #ff1744);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 3px 12px rgba(233, 30, 99, 0.3);
}

.embed-server-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #1ab188);
    color: #032c2c;
}

.server-btn.failed,
.embed-server-btn.failed {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
    color: #ff6b6b;
}

.server-btn.loading,
.embed-server-btn.loading {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.server-status {
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

.server-btn .loading-spinner,
.embed-server-btn .loading-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .player-modal {
        align-items: flex-start;
        padding: 0.5rem;
        overflow-y: auto;
    }

    .player-content {
        margin: 0 auto;
        padding: 1.1rem 0.85rem 1.5rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        width: 100%;
        border-radius: 16px;
        gap: 0.9rem;
    }

    .video-player,
    .loading-message,
    #embedStage {
        height: clamp(220px, 52vh, 360px) !important;
        border-radius: 14px;
    }

    #embedStage iframe {
        min-height: 100%;
    }

    .server-selection {
        padding: 0.85rem;
        border-radius: 14px;
        border-width: 1.5px;
    }

    .server-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }

    .server-btn,
    .embed-server-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        border-radius: 24px;
    }

    .server-status {
        margin-left: 0;
        margin-right: 0.45rem;
        font-size: 0.75rem;
    }

    #playerTips {
        font-size: 0.75rem;
        line-height: 1.4;
        padding: 0.9rem;
    }
}




/* Ensure the modal container fills its parent */
.movie-detail-modal,
.movie-detail-modal .embed-container {
    width: 100% !important;
    height: 600px !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0;
    margin: 0;
}

/* Make the iframe fill the embed container fully */
.movie-detail-modal .embed-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}


@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo {
        font-size: 1.8rem;
        order: 1;
        width: 100%;
        text-align: center;
    }

    .search-container {
        max-width: 100%;
        order: 2;
    }

    .admin-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        order: 3;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }

    .channel-title h3 {
        font-size: 1rem;
    }

    .watch-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    /* Make horizontal scrollers flush-left so users can scroll fully to start */
    .category-filters {
        padding: 0.5rem 0 !important;
        /* remove side padding that prevents full-left scroll */
        gap: 0.8rem;
        justify-content: flex-start !important;
        /* start items at the left edge */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    /* Ensure the container that holds the scroller has no lateral padding */
    .categories {
        padding: 0 !important;
        margin: 0.6rem 0 !important;
    }

    /* Make year tabs scrollable and flush-left when visible */
    .movie-year-tabs {
        padding: 0 0 !important;
        /* remove lateral padding */
        margin: 0.6rem 0 1rem !important;
        justify-content: center !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .movie-year-tab-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    .category-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: auto !important;
    }

    .visitor-ip {
        font-size: 0.6rem;
        padding: 0.4rem 0.8rem;
        bottom: 0.5rem;
    }

    .back-to-top {
        bottom: 70px;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .discord-btn {
        bottom: 70px;
        left: 1rem;
        width: 45px;
        height: 45px;
    }

    .discord-icon {
        width: 20px;
        height: 20px;
    }

    .cast-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }

    .cast-icon {
        width: 16px;
        height: 16px;
    }

    .movie-card {
        max-width: 200px;
    }

    /* Movie Cards Mobile */
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 2.5rem 1rem;
        padding: 1.5rem 0.8rem;
    }

    .movie-card {
        max-width: 160px;
    }

    .movie-poster-wrapper {
        height: 240px;
        min-height: 240px;
    }

    .movie-title {
        font-size: 0.9rem;
    }

    .movie-play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .movie-card:hover {
        transform: scale(1.15) translateY(-8px);
    }



    .movie-info {
        opacity: 1;
        transform: translateY(0);
        padding: 0.8rem 0.6rem;
        background: transparent 100%;
        pointer-events: none;
    }

    .movie-title {
        font-size: 0.9rem;
    }

    /* Hide source badges on mobile to save space */
    .movie-sources {
        display: none;
    }

    .source-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .movie-play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .movie-card:active {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.7);
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */



/* ============================================
   EXTRA LARGE DESKTOP (1920px+)
   ============================================ */
@media screen and (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 4rem 2.5rem;
    }
}

/* ============================================
   LARGE DESKTOP (1440px+)
   ============================================ */
@media screen and (min-width: 1440px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 3.5rem 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .movie-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) {

    .logo img {
        height: 50px;
        /* A slightly smaller l
        ogo for tablets */
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .category-filters {
        padding: 0.8rem 1rem;
        gap: 1rem;
    }

    .category-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem 1.5rem;
    }

    .movie-card {
        max-width: 220px;
        margin-bottom: 1.5rem;
    }

    .movie-poster-wrapper {
        height: 330px;
        min-height: 330px;
    }

    .movie-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .movie-title {
        font-size: 0.9rem;
    }

    .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 2rem 1.5rem !important;
    }

    .tvshow-card {
        max-width: 220px;
        margin-bottom: 1.5rem;
    }

    .tvshow-poster-wrapper {
        height: 330px;
        min-height: 330px;
    }

    .tvshow-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Mobile Landscape & Small Tablet - 768px */
@media (max-width: 768px) {

    .logo img {
        height: 45px;
        /* A smaller logo for mobile phones */
    }

    .header {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .logo {
        font-size: 1.5rem;
        order: 1;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .search-container {
        max-width: 100%;
        order: 2;
        flex-basis: 100%;
        width: 100%;
    }

    .admin-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        order: 3;
    }

    .categories {
        padding: 0 1rem;
    }

    .category-filters {
        padding: 0.5rem 0.5rem;
        gap: 0.8rem;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .category-filters::-webkit-scrollbar {
        height: 4px;
    }

    .category-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 100px;
        flex-shrink: 0;
    }

    .channels-container {
        padding: 0 1rem 3rem;
        max-height: none !important;
        /* Remove any max-height */
        overflow: visible !important;
    }

    .channels-grid {
        max-height: none !important;
        /* Remove any max-height */
        overflow: visible !important;
        grid-auto-rows: auto;
        /* Let rows size naturally */
    }

    .channel-card {
        height: 240px;
    }

    .channel-title h3 {
        font-size: 1.1rem;
    }

    .watch-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .movie-title {
        font-size: 0.9rem;
    }

    .movie-embed-frame {
        height: 350px !important;
    }

    .player-content {
        width: 95%;
        max-width: 95vw;
        padding: 1rem;
        border-radius: 15px;
    }

    .close-player {
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .video-player {
        height: 300px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.5rem 1rem;
    }

    .movie-card {
        max-width: 100%;
        min-height: 300px;
        margin-bottom: 15px;
    }

    .movie-poster-wrapper {
        height: 240px;
        min-height: 240px;
    }

    .movie-play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .movie-title {
        font-size: 0.9rem;
    }

    .movie-info {
        padding: 0.7rem 0.3rem;
    }

    .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 1.5rem 1rem !important;
    }

    .tvshow-card {
        max-width: 160px;
        min-height: 300px;
        margin-bottom: 15px;
    }

    .tvshow-poster-wrapper {
        height: 240px;
        min-height: 240px;
    }

    .tvshow-play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .tvshow-title {
        font-size: 0.9rem;
    }

    .tvshow-card:hover {
        transform: scale(1.15) translateY(-8px);
    }



}

/* Improve IPTV visibility on narrow devices (phones between ~320px and 650px) */
@media (max-width: 650px) {

    /* Use a single column so channel cards are large and readable */
    .channels-grid {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
        padding: 0.6rem !important;
    }

    /* Reduce card height so content fits without excessive scrolling */
    .channel-card {
        height: auto !important;
        min-height: 200px !important;
        max-width: 100% !important;
    }

    .channel-poster-wrapper {
        height: 180px !important;
        min-height: 160px !important;
        border-radius: 12px;
    }

    .channel-title {
        font-size: 1rem !important;
    }

    /* Add a small top offset so the sticky header doesn't overlap the first row */
    .channels-container {
        padding-top: 0.8rem !important;
    }

    /* Slightly reduce category button padding to prevent wrap/clipping */
    .category-btn {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.8rem !important;
    }
}

/* Mobile Portrait - 480px */
@media (max-width: 480px) {
    .header {
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.6rem 1rem 0.6rem 2.3rem;
    }

    .category-filters {
        padding: 0.5rem 0.5rem !important;
        gap: 0.6rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 90px;
        letter-spacing: 0.3px;
    }

    .channels-container {
        padding: 0 0.8rem 2.5rem;
        max-height: none !important;
        height: auto !important;
    }

    .channels-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .sports-group-grid {
        gap: 1rem;
    }

    .sports-card {
        max-width: 100%;
    }

    .sports-hero {
        height: 160px;
    }

    .channel-title h3 {
        font-size: 0.95rem;
    }

    .watch-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }



    .movie-card:hover {
        transform: scale(1.1) translateY(-4px);
    }


    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem 0.8rem;
    }

    .movie-card {
        min-height: 250px;
        margin-bottom: 10px;
    }

    .movie-poster-wrapper {
        height: 200px;
        min-height: 200px;
    }

    .movie-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        min-height: 44px;
    }

    .movie-title {
        font-size: 0.85rem;
        padding: 0 0.3rem;
    }

    .source-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .movie-title {
        font-size: 0.9rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }



    .source-badge,
    .genre-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .player-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
    }

    .player-content {
        width: 100%;
        max-width: 100vw;
        height: auto;
        max-height: calc(100vh - 0.5rem);
        border-radius: 0;
        padding: 0.9rem 0.85rem 1.4rem;
        overflow-y: auto;
        gap: 0.8rem;
    }

    .video-player,
    .loading-message,
    #embedStage {
        height: clamp(210px, 50vh, 320px) !important;
    }

    .movie-play-btn {
        opacity: 0.7;
    }

    .movie-card:active .movie-play-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }

    /* Tap effect instead of hover */
    .movie-card:active {
        transform: scale(1.02);
    }

    .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem 0.8rem !important;
    }

    .tvshow-card {
        min-height: 250px;
        margin-bottom: 10px;
    }

    .tvshow-poster-wrapper {
        height: 200px;
        min-height: 200px;
    }

    .tvshow-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tvshow-title {
        font-size: 0.85rem;
        line-clamp: 2;
        -webkit-line-clamp: 2;
    }



}

/* Extra Small Mobile - 360px */
@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }

    .channels-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.6rem;
    }

    .movie-poster-wrapper {
        height: 180px;
    }

    .channel-title h3 {
        font-size: 0.9rem;
    }

    .movie-card {
        height: 200px;
    }

    .category-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 80px;
    }

    .movie-player-title,
    .tvshow-player-title {
        font-size: 1.2rem;
    }

    .source-select {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* High Resolution Desktop - 1440px+ */
@media (min-width: 1440px) {
    .channels-container {
        max-width: 1400px;
    }

    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }

    .channel-card {
        height: 320px;
    }

    .movie-card {
        touch-action: manipulation;
    }

    .movie-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .movie-play-btn {
        opacity: 0.8;
    }
}

/* Ultra Wide Desktop - 1920px+ */
@media (min-width: 1920px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 4rem 3rem !important;
        max-width: 2000px !important;
        margin: 0 auto !important;
    }

    .movie-card {
        max-width: 320px !important;
    }

    .movie-poster-wrapper {
        height: 480px !important;
        min-height: 480px !important;
    }
}


@media (hover: none) and (pointer: coarse) {
    .channel-card {
        touch-action: pan-y;
        /* Allow vertical scrolling */
        -webkit-tap-highlight-color: transparent;
    }

    /* Make the watch button the primary touch target */
    .watch-btn {
        pointer-events: auto;
        min-height: 44px;
        /* iOS minimum touch target */
        min-width: 44px;
        padding: 0.8rem 1.5rem;
    }

    /* Reduce accidental activation */
    .channel-card:active {
        transition-delay: 100ms;
        /* Small delay before activation */
    }
}



/* Touch Device Optimizations */

/* Request Modal Styles */
.request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.request-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.modal-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #e91e63, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(233, 30, 99, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-form-group {
    margin-bottom: 1.5rem;
}

.modal-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.modal-required {
    color: #e91e63;
}

.modal-form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-form-control:focus {
    outline: none;
    border-color: #e91e63;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.modal-form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.modal-form-control {
    cursor: pointer;
}

select.modal-form-control option {
    background: #1a1a2e;
    color: white;
}

textarea.modal-form-control {
    resize: vertical;
    min-height: 100px;
}

.modal-submit-btn {
    background: linear-gradient(135deg, #e91e63, #ff1744);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.5);
}

.modal-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.modal-success,
.modal-error {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.modal-success {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.modal-error {
    background: rgba(255, 71, 87, 0.2);
    border: 2px solid rgba(255, 71, 87, 0.5);
    color: #ff4757;
}

@media (max-width: 768px) {
    .request-modal.active {
        padding: 1rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

body.player-open {
    overflow: hidden;
}

body.player-open .visitor-ip,
body.player-open .back-to-top,
body.player-open .discord-btn {
    display: none;
}