/* General Styles */
:root {
    --primary-bg: #000000;
    --secondary-bg: #2A2D4A;
    --text-primary: #FFFFFF;
    --text-secondary: #DDE5FF;
    --accent-pink: #E91E63;
    --accent-orange: #FF5722;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(10px);
    --glow-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
    --header-bg: #181818; /* Adjusted for DeeptoPlay like dark */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    padding-bottom: 80px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body.overlay-open {
    overflow: hidden;
}

::-webkit-scrollbar {
    display: none;
}

/* Header */
.app-header {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: -4px;
    right: -4px;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0;
    height: auto;
}

.app-header.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glow-shadow);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    margin-left: 0px;
}

.logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-left: 0px;
}

.desktop-nav {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    position: absolute;
    /* Added to make 'right' property work */
    right: 8px;
    /* Added as per your request */
}

.header-right .icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
    color: var(--text-primary);
}

.header-right .search-icon {
    width: 26px;
    height: 26px;
    margin-top: 2px;
}

.header-right .icon:hover,
.header-right .search-icon:hover {
    transform: scale(1.05);
    color: var(--accent-pink);
}

.vip-button {
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0px;
    /* Note: This makes text invisible; consider adjusting if unintended */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0px;
    border: 1px solid rgba(255, 87, 34, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.vip-button:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.vip-button .icon {
    width: 20px;
    height: 20px;
}

.vip-button.clicked {
    background: linear-gradient(45deg, var(--accent-orange), #FF8C00);
}

/* Mobile Scrollable Menu */
.mobile-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 0 6px 0;
    margin-left: 0px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 6px;
    border-radius: 0;
}

.mobile-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 6px 14px 6px 0;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav a:first-child {
    margin-left: 0;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mobile-nav a.active::after {
    content: '';
    display: block;
    margin-top: 3px;
    height: 2px;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    border-radius: 1px;
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    padding: 0 14px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    z-index: 101;
    border-radius: 0;
    box-shadow: var(--glow-shadow);
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-bar input {
    flex-grow: 1;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Josefin Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--accent-pink);
}

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

.search-bar .close-icon {
    margin-left: 12px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar .close-icon:hover {
    transform: scale(1.05) rotate(90deg);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    /* Very dark semi-transparent black */
    backdrop-filter: blur(30px);
    /* 30px blur for strong frosted glass */
    -webkit-backdrop-filter: blur(30px);
    /* Safari compatibility */
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    /* Set to block for testing */
    border-radius: 0;
    box-shadow: var(--glow-shadow);

    /* Fallback for unsupported browsers */
    @supports not (backdrop-filter: blur(30px)) {
        background-color: rgba(0, 0, 0, 0.85);
        /* Near-opaque black fallback */
    }
}
.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-item:hover {
    background-color: rgba(233, 30, 99, 0.1);
    transform: translateX(4px);
}

.search-result-item img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
}

.search-result-item .title {
    font-size: 15px;
    font-weight: 600;
}

.search-result-item .posted-by {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    margin: 0; /* Changed to 0 for top 0 start */
    width: 100%;
    overflow: hidden;
    min-height: 40px;
    box-sizing: border-box;
}

.hero-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.hero-slide {
    flex: 0 0 100%;
    position: relative;
    box-sizing: border-box;
    opacity: 0.7;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-inner {
    position: relative;
    overflow: hidden;
}

.hero-slide-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 15%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 15px;
    box-sizing: border-box;
}

.hero-overlay .title {
    font-size: 22px;
    font-weight: 900;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
    margin: 0 0 15px 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.action-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.action-btn.play {
    flex-grow: 1;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    color: var(--text-primary);
    padding: 12px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn.play:hover {
    background: linear-gradient(45deg, var(--accent-orange), #FF8C00);
}

.action-btn.play .icon {
    width: 26px;
    height: 26px;
}

.action-btn.play span {
    line-height: 1;
}

.action-btn.plus {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 12px;
    height: 50px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.plus:hover {
    background-color: rgba(233, 30, 99, 0.2);
}

.action-btn.plus .icon {
    width: 24px;
    height: 24px;
}

.hero-nav {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.hero-prev,
.hero-next {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    transform: scale(1.03);
    background-color: rgba(233, 30, 99, 0.2);
}

/* Content Row (Movie Slider) */
.content-row {
    margin: 20px 0;
    position: relative;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 15px;
}

.row-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.row-header .view-more {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.row-header .view-more:hover {
    color: var(--accent-pink);
    transform: translateX(5px);
}

.content-grid {
    display: flex;
    overflow-x: auto;
    /* Enable horizontal scrolling for the slider */
    gap: 10px;
    /* Keep gap at 10px */
    padding: 0 4px;
    /* Reduced padding for alignment */
    margin-left: 6px;
    /* Set to 8px as requested */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    scroll-behavior: smooth;
    /* Smooth scrolling */
    will-change: transform;
    /* Optimize rendering */
    -webkit-overflow-scrolling: touch;
    /* Enable momentum scrolling for iOS */
    overscroll-behavior-x: contain;
    /* Prevent bounce-back for horizontal scroll */
    -webkit-transform: translate3d(0, 0, 0);
    /* Force GPU rendering */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.content-grid::-webkit-scrollbar {
    display: none;
}

/* Optimize child elements for smooth scrolling and fixed sizing */
.content-grid>* {
    backface-visibility: hidden;
    /* Prevent flickering */
    transform: translateZ(0);
    /* Force hardware acceleration */
    flex: 0 0 28%;
    /* Each item takes 29% of container width for ~3–4 items */
    max-width: 180px;
    /* Adjust for ~3–4 items (tweak as needed) */
}
.content-card {
    flex: 0 0 28.57%;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-card:hover {
    transform: translateY(-5px) scale(1.03);
    
}

.content-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    filter: brightness(0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.content-card .title {
    font-weight: bold;
    font-size: 12px;
    margin: 5px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
    color: rgba(173, 216, 230, 0.6);
    /* Light blue-white with 60% opacity */
}

.content-card .description,
.content-card .video-url,
.content-card .posted-by {
    display: ;
}

.trending-badge {
    position: absolute;
    top: 8px;
    left: 0;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 0 6px 6px 0;
    font-size: 10px;
    font-weight: 600;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 87, 34, 0.3);
    box-shadow: var(--glow-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trending-badge:hover {
    transform: scale(1.03);
}

/* Live TV Slider */
.live-tv-slider {
    margin: 20px 0;
    position: relative;
}

.live-tv-slides {
    display: flex;
    overflow-x: auto;
    /* Enable horizontal scrolling for the slider */
    gap: 10px;
    /* Keep gap at 10px as requested */
    padding: 0 4px;
    /* Reduced padding for better alignment */
    margin-left: 4px;
    /* Changed to 6px as requested */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    scroll-behavior: smooth;
    /* Smooth scrolling */
    will-change: transform;
    /* Optimize rendering */
    -webkit-overflow-scrolling: touch;
    /* Enable momentum scrolling for iOS */
    overscroll-behavior-x: contain;
    /* Prevent bounce-back for horizontal scroll */
    -webkit-transform: translate3d(0, 0, 0);
    /* Force GPU rendering */
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.live-tv-slides::-webkit-scrollbar {
    display: none;
}

/* Optimize child elements for smooth scrolling and fixed sizing */
.live-tv-slides>* {
    backface-visibility: hidden;
    /* Prevent flickering */
    transform: translateZ(0);
    /* Force hardware acceleration */
    flex: 0 0 20%;
    /* Each item takes 25% of container width for ~3–4 items */
    max-width: 180px;
    /* Adjust for ~3–4 items (tweak as needed) */
}

.live-tv-slide {
    flex: 0 0 calc(18% - 5px);
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.live-tv-slide img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0.9);
    box-shadow: var(--glow-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-tv-slide:hover img {
    transform: scale(1.05);
}

.live-tv-slide .title {
    display: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(25px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    border-radius: 2px;
    box-shadow: var(--glow-shadow);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 10px;
    gap: 5px;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
}

.nav-item .icon {
    width: 28px;
    height: 28px;
}

.nav-item.active {
    color: var(--accent-pink);
}

.nav-item:hover {
    color: var(--accent-pink);
    transform: translateY(-2px);
}

/* Footer */
.app-footer {
    background-color: var(--secondary-bg);
    padding: 25px 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-pink);
}

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

/* Fullscreen Overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    flex-direction: column;
    padding-bottom: 20px;
}

.fullscreen-overlay.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.overlay-player {
    top: 3px;
    position: relative;
    height: 230px;
    width: 99vw;
    aspect-ratio: 16 / 9;
    
}

.overlay-player video,
.overlay-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border: 1px solid rgba(233, 30, 99, 0.3);
    border-radius: 30px;
     box-shadow: var(--glow-shadow);
    
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    z-index: 201;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, background-color 0.3s ease;
    padding: 0;
}

.close-btn .icon {
    width: 24px;
    height: 24px;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-pink);
    background-color: rgba(233, 30, 99, 0.2);
}

.overlay-content-box {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
   
    backdrop-filter: var(--glass-blur);

    
        border: 1px solid rgba(233, 30, 99, 0.3);
        border-radius: 30px;
        box-shadow: var(--glow-shadow);
}

.overlay-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
   
    
}

.overlay-meta {
    font-size: 0px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.overlay-description {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 0;
    max-height: 200px;
    overflow-y: auto;
    
  
}

.overlay-action-buttons {
    transform: scale(1.03);
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 20px auto;
    padding: 0;
    max-width: 900px;
    box-sizing: border-box;
}

.overlay-action-buttons button {
  
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    border: 1px solid rgba(255, 87, 34, 0.3);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 1;
}

.overlay-action-buttons .play-pause-btn {
    
    flex: 2.5;
    padding: 12px 20px;
    font-size: clamp(13px, 2vw, 14px);
    font-weight: 600;
    gap: 8px;
    height: 44px;
    min-width: 110px;
    
}

.overlay-action-buttons .download-btn,
.overlay-action-buttons .share-btn,
.overlay-action-buttons .embed-btn {
    flex: 0.6;
    padding: 12px;
    height: 44px;
    width: 44px;
    min-width: 44px;
}

.overlay-action-buttons .play-pause-btn .icon {
    width: 18px;
    height: 18px;
}

.overlay-action-buttons .download-btn .icon,
.overlay-action-buttons .share-btn .icon,
.overlay-action-buttons .embed-btn .icon {
    width: 18px;
    height: 18px;
}

.overlay-action-buttons .download-btn span,
.overlay-action-buttons .share-btn span,
.overlay-action-buttons .embed-btn span {
    display: none;
}

.overlay-action-buttons button:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.3);
}

.overlay-social-footer {
    width:90%;
    backdrop-filter: var(--glass-blur);

    
        border: 1px solid rgba(233, 30, 99, 0.3);
        border-radius: 30px;
        box-shadow: var(--glow-shadow);
    max-width: 900px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

.social-text-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.social-text-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-text-links a:hover {
    color: var(--accent-pink);
}

.social-text-links span {
    color: var(--text-secondary);
}

/* Share Box */
.share-box-container,
.embed-box-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}

.share-box-container.active,
.embed-box-container.active {
    display: flex;
}

.share-box,
.embed-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    margin: 0 15px;
    box-shadow: var(--glow-shadow);
    border: 1px solid rgba(233, 30, 99, 0.3);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box-close-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 301;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease, background-color 0.3s ease;
    padding: 0;
}

.box-close-btn .icon {
    width: 24px;
    height: 24px;
}

.box-close-btn:hover {
    transform: rotate(90deg);
    color: var(--accent-pink);
    background-color: rgba(233, 30, 99, 0.2);
}

.input-container {
    position: relative;
    width: 100%;
}

.share-box input,
.embed-box textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    height:100px;
}

.embed-box textarea {
    height: 100px;
    resize: vertical;
}

.copy-btn {
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 6px;
    border-radius: 6px;
}

.copy-btn .icon {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
}

.copy-btn:hover .icon {
    transform: scale(1.05);
}

.social-share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-share-buttons a {
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-share-buttons .icon {
    width: 28px;
    height: 28px;
}

/* ========================================= */
/* === IMPROVED DESKTOP LAYOUT (PC/LAPTOP) === */
/* ========================================= */
@media (min-width: 738px) {
    /* ADDED: body max-width for better layout on large screens */
    body {
        max-width: 1600px;
        margin: 0 auto;
        padding-top: 60px;
    }
    



.content-card .title {
    font-weight: bold;
    font-size: 12px;
    margin: 5px 0 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: rgba(173, 216, 230, 0.6);
    /* Light blue-white with 60% opacity */
}
    /* === Header Improvement: Making it readable === */
    .app-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        padding: 10px 30px;
        flex-direction: row;
        align-items: center;
        height: 50px;
        border-radius: 0;
        background: #101010;
        /* Black → Pink gradient */
        backdrop-filter: none;
    }
    .app-header.scrolled {
        background-color: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        box-shadow: var(--glow-shadow);
    }

    .header-top {
        display: contents;
    }

    .logo {
        grid-column: 1 / 2;
        margin-left: 0;
    }

    .header-right {
        grid-column: 3 / 4;
        margin-right: 0;
    }

    .desktop-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        grid-column: 2 / 3;
        margin-left: 1px;
        border-radius: 0;
    }

    .desktop-nav a {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.8px;
        padding: 8px 15px;
        position: relative;
        transition: color 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .desktop-nav a.active,
    .desktop-nav a:hover {
        color: var(--text-primary);
        transform: translateY(-1px);
    }

    .desktop-nav a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15px;
        right: 15px;
        height: 3px;
        background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
        border-radius: 2px;
    }

    /* === Hiding Mobile Elements === */
    .mobile-nav {
        display: none;
    }

    .bottom-nav {
        display: none;
    }

    /* === Hero Section Polish === */
    .hero-banner {
        margin-top: 12px;
         margin-left: 100px;
        min-height: 0px; /* Made smaller */
        position: relative;
        border-radius: 5px; /* Rounded box */
        overflow: hidden; /* Ensure slider stays within the box */
        max-width: 95%; /* Smaller width, centered */
      
        margin-right: auto;
    }

    .hero-slide-inner img {
        height: 300px; /* Smaller height */
        width: 100%;
        border-radius: 5px; /* Rounded */
    }

    .hero-overlay {
        padding: 50px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 1%, transparent 99%);
    }

    .hero-overlay .title {
        font-size: 42px;
        font-weight: 900;
    }

    .hero-actions {
        max-width: 400px;
    }

    .action-btn.play {
        padding: 14px 24px;
        font-size: 18px;
        border-radius: 30px; /* More rounded */
    }

    .action-btn.plus {
        padding: 16px;
        height: 52px;
        width: 52px;
        border-radius: 50%; /* Round info button */
    }

    .action-btn.plus .icon {
        width: 28px;
        height: 28px;
    }

    /* === Polished Hero Navigation Arrows === */
    .hero-nav {
        display: none;
    }

    /* === Other Section Adjustments === */
    .content-card {
        flex: 0 0 calc(16.666% - 12.5px);
    }

    .live-tv-slide {
        flex: 0 0 calc(8.5% - 10px);
    }

    .content-grid {
        gap: 15px;
        padding: 0 0px;
        overflow-x: hidden;
    }

    .row-header {
        padding: 0 30px;
    }

    .row-header h2 {
        font-size: 22px;
        font-weight: 900;
    }

    .overlay-player {
        height: 100%;
        aspect-ratio: 21 / 9;
    }

    .overlay-title {
        font-size: 32px;
    }

    .overlay-description {
        font-size: 18px;
    }

    /* Row Slider Arrows like Netflix */
    .row-prev,
    .row-next {
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        background-color: black;
        color: white;
        border: none;
        font-size: 20px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.3s ease;
        border-radius: 50%;
    }

    .row-prev {
        left: 10px;
    }

    .row-next {
        right: 10px;
    }

    .row-prev:hover,
    .row-next:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Live TV Arrows */
    .live-prev,
    .live-next {
        position: absolute;
        top: 68%;
        transform: translateY(-50%);
        background-color: black;
        color: white;
        border: none;
        font-size: 15px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.3s ease;
        border-radius: 50%;
    }

    .live-prev {
        left: 10px;
    }

    .live-next {
        right: 10px;
    }

    .live-prev:hover,
    .live-next:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Additional Style Improvements */
    .content-card img {
        transition: filter 0.3s ease;
    }

    .content-card:hover img {
        filter: brightness(1.1);
    }

    .row-header {
        margin-bottom: 20px;
    }

    .content-grid {
        margin-left: 30px;
    }

    .live-tv-slides {
        padding: 0 2px;
        overflow-x: hidden;
    }

    /* Sidebar for PC like DeeptoPlay */
    .sidebar {
        position: fixed;
        left: 0;
        top: 70px;
        bottom: 0;
        width: 67px;
        background: #101010; /* Gradient bg */
        color: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 20px 0;
        z-index: 99;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        border-radius: 0px; /* Rounded corners */
        overflow: hidden; /* Prevent content overflow outside rounded corners */
    }

    .sidebar .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: white;
        font-size: 12px;
        gap: 4px;
        transition: color 0.3s;
    }

    .sidebar .nav-item:hover {
        color: #000;
    }

    .sidebar .icon {
        width: 24px;
        height: 24px;
    }

    /* Main content shift for sidebar */
    .hero-banner,
    .content-row,
    .live-tv-slider {
        margin-left: 74px;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    /* Sidebar for PC like DeeptoPlay */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0px;
        bottom: 0;
        width: 0px;
        background: linear-gradient(180deg, red, pink);
        /* Gradient bg */
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0px;
        padding: 0px 0;
        z-index: 0;
        box-shadow: 0px 0 0px rgba(0, 0, 0, 0.1);
        border-radius: 0px;
        /* Rounded corners */
        overflow: hidden;
        /* Prevent content overflow outside rounded corners */
    }

    /* Layout for overlay action buttons on mobile */
    .overlay-action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 96%;
        padding: 0;
        margin: 20px auto;
    }

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

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

    .overlay-action-buttons .play-pause-btn {
        flex: 1 1 100%;
        padding: 8px 14px;
        font-size: clamp(11px, 1.6vw, 12px);
        height: 36px;
    }

    .overlay-action-buttons .download-btn,
    .overlay-action-buttons .share-btn,
    .overlay-action-buttons .embed-btn {
        flex: 1;
        padding: 8px;
        height: 36px;
    }

    .overlay-action-buttons .play-pause-btn .icon {
        width: 16px;
        height: 16px;
    }

    .overlay-action-buttons .download-btn .icon,
    .overlay-action-buttons .share-btn .icon,
    .overlay-action-buttons .embed-btn .icon {
        width: 16px;
        height: 16px;
    }

    /* No margin-top for hero in mobile to start from top 0 */
    /* Header is transparent, so overlays the slider */
}   