/* =============================== */
/* VARIABLES & RESET */
/* =============================== */

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D3;
    --secondary: #FF6584;
    --accent: #36D1DC;
    --dark: #0A0A14;
    --dark-light: #1A1A2E;
    --light: #FFFFFF;
    --gray: #8A8A9E;
    --gray-light: #C5C5D3;
    --success: #4CD964;
    --warning: #FF9500;
    --danger: #FF3B30;
    
    --glass: rgba(255, 255, 255, 0.05);
    --glass-dark: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-dark: linear-gradient(135deg, var(--dark), #1A1A2E);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 10px 30px rgba(108, 99, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =============================== */
/* BACKGROUND & EFFECTS */
/* =============================== */

.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    filter: blur(5px) brightness(0.6);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 10, 20, 0.9) 0%,
        rgba(26, 26, 46, 0.8) 50%,
        rgba(108, 99, 255, 0.1) 100%);
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(108, 99, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 101, 132, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(54, 209, 220, 0.1) 0%, transparent 50%);
}

/* =============================== */
/* HEADER & NAVIGATION */
/* =============================== */

.stream-header {
    position: relative;
    padding: 20px 40px;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--light);
    font-family: 'Montserrat', sans-serif;
}

.logo i {
    color: var(--primary);
    font-size: 32px;
}

.logo-highlight {
    color: var(--primary);
}

.nav-tagline {
    font-size: 14px;
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 1px;
    border-left: 2px solid var(--primary);
    padding-left: 15px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--light);
    background: var(--glass);
}

.nav-link.active {
    color: var(--light);
    background: rgba(108, 99, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.nav-search {
    position: relative;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-light);
    border-radius: 15px;
    margin-top: 10px;
    padding: 10px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--glass);
}

.search-result-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-result-info p {
    font-size: 12px;
    color: var(--gray);
}

.nav-user {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--glass);
    border-color: var(--primary);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--dark-light);
    border-radius: 15px;
    margin-top: 10px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
}

.dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.dropdown-info p {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.dropdown-menu {
    padding: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--glass);
}

.dropdown-item i {
    width: 20px;
    color: var(--gray);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.dropdown-item.logout {
    color: var(--secondary);
}

.dropdown-item.logout:hover {
    background: rgba(255, 101, 132, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 45px;
    height: 45px;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: var(--glass);
    border-color: var(--primary);
}

/* =============================== */
/* HERO SECTION */
/* =============================== */

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    position: relative;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 8px 15px;
    margin-bottom: 25px;
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--light);
}

.hero-badge i {
    color: #FFD700;
    font-size: 12px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--light) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray);
}

.meta-item i {
    color: var(--primary);
}

.meta-item.rating {
    color: #FFD700;
}

.meta-item.rating i {
    color: #FFD700;
}

.age-rating {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid var(--danger);
    border-radius: 4px;
    padding: 2px 8px;
    font-weight: 600;
    color: var(--light);
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-light);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-play i {
    font-size: 18px;
}

.btn-trailer, .btn-add {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-trailer:hover, .btn-add:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-light);
    transition: var(--transition);
}

.genre-tag:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--primary);
    color: var(--light);
}

.hero-poster {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.poster-container {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.poster-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.poster-container:hover .poster-overlay {
    opacity: 1;
}

.poster-container:hover .poster-image {
    transform: scale(1.05);
}

.overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light);
    font-weight: 600;
    font-size: 18px;
}

.overlay-content i {
    font-size: 24px;
}

.hero-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-control-btn {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-control-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--primary);
    transform: scale(1.1);
}

.hero-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    background: var(--gray);
    border-radius: 50%;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* =============================== */
/* CONTENT SECTIONS */
/* =============================== */

.main-content {
    padding: 0 40px 60px;
    position: relative;
    z-index: 1;
}

.content-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.section-title i {
    color: var(--primary);
    font-size: 24px;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    gap: 12px;
}

.section-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--gray);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--light);
    background: rgba(108, 99, 255, 0.1);
}

.filter-btn.active {
    background: rgba(108, 99, 255, 0.2);
    color: var(--light);
    border-color: var(--primary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Content Card */
.content-card {
    background: var(--glass);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-10px);
    background: rgba(108, 99, 255, 0.1);
    box-shadow: var(--shadow);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.content-card:hover .card-image {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.content-card:hover .card-content {
    transform: translateY(0);
}

.card-badge {
    display: inline-block;
    background: rgba(255, 101, 132, 0.2);
    border: 1px solid var(--secondary);
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 15px;
}

.card-meta i {
    color: var(--primary);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD700;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.card-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Categories */
.categories-section {
    margin: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--glass);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    background: rgba(108, 99, 255, 0.1);
    box-shadow: var(--shadow-light);
}

.category-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 8px;
}

.category-count {
    font-size: 12px;
    color: var(--gray);
}

/* Live TV */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid var(--danger);
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--light);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-channels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.live-channel {
    background: var(--glass);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.live-channel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.channel-header {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.channel-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 20px;
    z-index: 2;
}

.channel-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.channel-live {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 59, 48, 0.9);
    color: var(--light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.channel-info {
    padding: 20px;
}

.channel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light);
}

.channel-program {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.channel-viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray);
}

.channel-viewers i {
    color: var(--secondary);
}

/* =============================== */
/* MODALS */
/* =============================== */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: var(--dark-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
}

.modal-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.video-player {
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-placeholder {
    text-align: center;
    color: var(--gray);
}

.player-placeholder i {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 15px;
}

.video-info {
    padding: 20px;
    background: var(--glass);
    border-radius: 15px;
}

.preview-modal {
    position: fixed;
    display: none;
    z-index: 1500;
    background: var(--dark-light);
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 400px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.preview-content {
    display: flex;
}

.preview-poster {
    width: 150px;
    height: 225px;
    position: relative;
}

#preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 10px 0 0 10px;
}

.preview-poster:hover .preview-overlay {
    opacity: 1;
}

.preview-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.8);
    border: none;
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.preview-play:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.preview-info {
    padding: 20px;
    flex: 1;
    max-width: 250px;
}

#preview-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light);
}

#preview-meta {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

#preview-description {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.preview-actions {
    display: flex;
    gap: 10px;
}

.btn-play-sm, .btn-add-sm {
    flex: 1;
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-play-sm {
    background: var(--primary);
    color: var(--light);
}

.btn-play-sm:hover {
    background: var(--primary-dark);
}

.btn-add-sm {
    background: var(--glass);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-add-sm:hover {
    background: rgba(108, 99, 255, 0.1);
}

/* =============================== */
/* FOOTER */
/* =============================== */

.stream-footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    padding: 60px 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.footer-logo i {
    color: var(--primary);
}

.footer-tagline {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--light);
    padding-left: 5px;
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--gray);
    transition: var(--transition);
}

.platform-badge:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    color: var(--light);
}

.platform-badge i {
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--gray);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--light);
}

/* =============================== */
/* UTILITIES */
/* =============================== */

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    display: flex;
    gap: 10px;
}

.spinner-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.toast {
    background: var(--dark-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast i {
    color: var(--primary);
    font-size: 18px;
}

.toast-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--light);
}

.toast-content p {
    font-size: 12px;
    color: var(--gray);
}

/* =============================== */
/* RESPONSIVE DESIGN */
/* =============================== */

@media (max-width: 1200px) {
    .hero-section {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-poster {
        justify-content: center;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .stream-header, .main-content {
        padding: 20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-light);
        padding: 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .search-container {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-play, .btn-trailer, .btn-add {
        width: 100%;
        justify-content: center;
    }
    
    .poster-container {
        width: 300px;
        height: 400px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .live-channels {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-genres {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .preview-content {
        flex-direction: column;
    }
    
    .preview-poster {
        width: 100%;
        height: 200px;
        border-radius: 10px 10px 0 0;
    }
    
    .preview-overlay {
        border-radius: 10px 10px 0 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* =============================== */
/* ENHANCEMENT STYLES */
/* =============================== */

/* Video Player Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    font-size: 14px;
    color: white;
    min-width: 100px;
    text-align: center;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

/* Watch Party Feature */
.watch-party {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(108, 99, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.party-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.party-header i {
    color: white;
    font-size: 20px;
}

.party-header h4 {
    color: white;
    font-size: 14px;
    margin: 0;
}

.party-users {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.user-avatar-sm {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.party-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.party-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.party-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Download Feature */
.download-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 12px;
    z-index: 2;
}

.download-badge i {
    color: #4CD964;
}

/* Audio & Subtitle Selector */
.audio-selector {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 10px;
    min-width: 150px;
    display: none;
}

.audio-option {
    padding: 8px 12px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.audio-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.audio-option.active {
    background: var(--primary);
}

/* Recommendation Engine */
.recommendation-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 101, 132, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

/* Watch History Timeline */
.history-timeline {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: rgba(26, 26, 46, 0.95);
    border-radius: 15px;
    padding: 15px;
    max-width: 300px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.timeline-item:hover {
    background: rgba(108, 99, 255, 0.1);
}

.timeline-thumb {
    width: 60px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}

.timeline-info h5 {
    font-size: 12px;
    margin: 0 0 5px 0;
    color: white;
}

.timeline-progress {
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress-fill {
    height: 100%;
    background: var(--primary);
}

/* Keyboard Shortcuts Guide */
.shortcuts-guide {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.95);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(20px);
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-key {
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--light);
}

/* Loading Screen Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-logo {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.loading-progress {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.loading-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* Rating System */
.rating-system {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--glass);
    border-radius: 10px;
    margin-top: 20px;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-star {
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.rating-star:hover,
.rating-star.active {
    color: #FFD700;
    transform: scale(1.2);
}

/* Voice Control */
.voice-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s;
}

.voice-control.listening {
    animation: pulse 1.5s infinite;
    background: var(--secondary);
}

.voice-control i {
    color: white;
    font-size: 24px;
}

/* Episode Selector */
.episode-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.episode-card {
    background: var(--glass);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.episode-card:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.episode-card.active {
    background: var(--primary);
    color: white;
}

/* Statistics Dashboard */
.stats-dashboard {
    background: var(--glass);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .video-controls {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .watch-party {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
    
    .voice-control {
        bottom: 90px;
        left: 10px;
        width: 50px;
        height: 50px;
    }
}

/* Print Styles */
@media print {
    .nav-container,
    .hero-controls,
    .video-modal,
    .preview-modal,
    .voice-control,
    .watch-party {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
/* =============================== */
/* NEW COMPONENTS STYLES */
/* =============================== */

/* Download Button */
.btn-download {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: rgba(76, 217, 100, 0.2);
    border: 1px solid rgba(76, 217, 100, 0.3);
    border-radius: 12px;
    color: #4CD964;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-download:hover {
    background: rgba(76, 217, 100, 0.3);
    transform: translateY(-2px);
}

.btn-download-sm {
    padding: 8px 15px;
    background: rgba(76, 217, 100, 0.2);
    border: 1px solid rgba(76, 217, 100, 0.3);
    border-radius: 8px;
    color: #4CD964;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Voice Search Button */
.voice-search-btn {
    background: rgba(54, 209, 220, 0.2);
    border-color: rgba(54, 209, 220, 0.3);
    color: var(--accent);
}

.voice-search-btn.listening {
    animation: pulse 1.5s infinite;
    background: rgba(255, 101, 132, 0.3);
}

/* Watch Party Badge */
.watch-party-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(108, 99, 255, 0.9);
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition);
}

.watch-party-badge:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Keyboard Shortcuts Preview */
.shortcuts-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass);
    border-radius: 10px;
    padding: 12px 20px;
    min-width: 150px;
}

.shortcut-item kbd {
    background: rgba(108, 99, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    color: var(--primary);
    min-width: 40px;
    text-align: center;
}

/* PWA Install Button */
.btn-pwa-install {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.btn-pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Offline Indicator */
.offline-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid var(--danger);
    border-radius: 20px;
    padding: 8px 15px;
    margin-top: 20px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
}

/* Download Manager */
.download-manager {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background: var(--dark-light);
    border-radius: 15px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.download-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-close {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
}

.download-list {
    max-height: 300px;
    overflow-y: auto;
}

.download-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.download-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.download-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray);
}

.download-empty i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Voice Control Panel */
.voice-control-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 300px;
    background: var(--dark-light);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.voice-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.voice-icon.listening {
    animation: pulse 1.5s infinite;
    background: var(--secondary);
}

.voice-transcript {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    min-height: 100px;
    font-size: 14px;
    color: var(--gray-light);
}

/* Advanced Player Modal */
.advanced-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .download-manager,
    .voice-control-panel {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
    
    .hero-actions {
        flex-wrap: wrap;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    .shortcuts-preview {
        flex-direction: column;
    }
}

/* Animation for listening state */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Rating in Preview */
.preview-rating {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-rating .rating-stars {
    justify-content: center;
}
.btn-pwa-install {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.btn-pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}
/* =============================== */
/* LOADING SCREEN STYLES */
/* =============================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.loading-logo {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.loading-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--light) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 30px;
}

.loading-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* =============================== */
/* HIDE DEFAULT LOADING SPINNER */
/* =============================== */

.loading-spinner {
    display: none !important;
}