/* ==========================================
   StreamHub OTT Platform - Custom Styles
   Dark theme with orange accent (#ff7a18)
   ========================================== */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0b0b0b;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0b0b0b;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 4%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.navbar.transparent {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.navbar.solid {
    background-color: #141414;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ff7a18;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: #ffffff;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #b3b3b3;
    transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: #ffffff;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn,
.profile-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

.search-btn:hover,
.profile-btn:hover {
    transform: scale(1.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #141414;
    z-index: 999;
    padding: 2rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    color: #b3b3b3;
    border-bottom: 1px solid #222;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #ff7a18;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, #0b0b0b);
}

.hero-gradient-side {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(90deg, rgba(11, 11, 11, 0.8) 0%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 4%;
    max-width: 600px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: #ff7a18;
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1rem;
    color: #d4d4d4;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #999;
}

.hero-meta .rating {
    color: #ff7a18;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    color: #000;
}

.btn-play:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 10%;
    right: 4%;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    width: 28px;
    background: #ff7a18;
}

/* Content Sections */
.content-section {
    position: relative;
    padding: 0 4%;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .view-all {
    font-size: 0.8rem;
    color: #ff7a18;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s;
}

.section-title:hover .view-all {
    opacity: 1;
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: visible;
}

.carousel-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0 20px 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 80%;
    background: rgba(20, 20, 20, 0.8);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-container:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow.left {
    left: -2px;
    border-radius: 0 4px 4px 0;
}

.carousel-arrow.right {
    right: -2px;
    border-radius: 4px 0 0 4px;
}

/* Content Card */
.content-card {
    flex: 0 0 auto;
    width: 220px;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0s 0.3s;
}

.content-card:hover {
    transform: scale(1.15);
    z-index: 30;
    transition: transform 0.3s ease, z-index 0s;
}

.content-card .card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #1a1a1a;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 40px 12px 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta .card-rating {
    color: #46d369;
    font-weight: 600;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    background: rgba(255, 122, 24, 0.9);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.content-card:hover .card-play-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* Continue Watching Card */
.continue-card {
    width: 280px;
}

.continue-progress {
    height: 3px;
    background: #333;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.continue-progress-bar {
    height: 100%;
    background: #ff7a18;
    transition: width 0.3s;
}

/* Live Channel Card */
.live-card {
    position: relative;
}

.live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e50914;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 80px 4%;
    display: none;
}

.search-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #ff7a18;
    padding-bottom: 8px;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-wrapper svg {
    color: #ff7a18;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.search-input::placeholder {
    color: #555;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 4%;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #ff7a18;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #ff7a18;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    background: #e56b10;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.auth-link a {
    color: #ff7a18;
    font-weight: 600;
}

/* Profile Selection */
.profiles-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.profiles-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.profiles-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-item:hover {
    transform: scale(1.1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 12px;
    border: 3px solid transparent;
    transition: border-color 0.2s;
}

.profile-item:hover .profile-avatar {
    border-color: #ff7a18;
}

.profile-name {
    color: #999;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.profile-item:hover .profile-name {
    color: #fff;
}

/* Video Player Page */
.player-container {
    width: 100%;
    background: #000;
}

.player-container .video-js {
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

.player-info {
    padding: 2rem 4%;
}

.player-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.player-description {
    color: #999;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Episode List */
.episode-list {
    margin-bottom: 3rem;
}

.episode-list h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.season-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.season-tab {
    padding: 8px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.season-tab.active,
.season-tab:hover {
    background: #ff7a18;
    color: #000;
    border-color: #ff7a18;
    font-weight: 600;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #141414;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.episode-item:hover {
    background: #1f1f1f;
}

.episode-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #555;
    min-width: 40px;
    text-align: center;
}

.episode-thumb {
    width: 160px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    background: #1a1a1a;
}

.episode-info {
    flex: 1;
}

.episode-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.episode-info p {
    font-size: 0.8rem;
    color: #999;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Detail Page */
.content-detail {
    position: relative;
}

.content-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.content-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-detail-info {
    padding: 2rem 4%;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.content-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.btn-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #555;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-circle:hover {
    border-color: #fff;
    transform: scale(1.1);
}

.btn-circle.active {
    border-color: #ff7a18;
    color: #ff7a18;
}

/* Footer */
.footer {
    padding: 3rem 4%;
    margin-top: 4rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #666;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ff7a18;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #242424 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 5000;
    animation: slideUp 0.3s ease;
    border-left: 4px solid #ff7a18;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .content-card {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 65vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-play,
    .btn-info {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .content-card {
        width: 150px;
    }

    .continue-card {
        width: 200px;
    }

    .auth-card {
        padding: 2rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .content-banner {
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .content-card {
        width: 130px;
    }

    .hero-content {
        bottom: 15%;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .hero-meta {
        display: none;
    }
}

/* ==========================================
   EduStream Elite - Custom Animations & Utils
   ========================================== */

@keyframes subtle-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.hero-bg-animate {
    animation: subtle-zoom 20s infinite alternate ease-in-out;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    border-color: rgba(255, 140, 0, 0.6);
}

.hub-card {
    background: linear-gradient(145deg, rgba(40, 44, 52, 1) 0%, rgba(15, 16, 20, 1) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-card:hover {
    transform: scale(1.05);
    border-color: #ff8c00;
    box-shadow: 0 10px 30px -10px rgba(255, 140, 0, 0.5);
}

.glass-nav {
    backdrop-filter: blur(12px);
    background-color: rgba(15, 16, 20, 0.75);
}

.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* ==========================================
   EduStream Elite - Custom Animations & Utils
   ========================================== */

@keyframes subtle-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-bg-animate {
    animation: subtle-zoom 20s infinite alternate ease-in-out;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
    border-color: rgba(255, 140, 0, 0.6);
}

.hub-card {
    background: linear-gradient(145deg, rgba(40,44,52,1) 0%, rgba(15,16,20,1) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-card:hover {
    transform: scale(1.05);
    border-color: #ff8c00;
    box-shadow: 0 10px 30px -10px rgba(255,140,0,0.5);
}

.glass-nav {
    backdrop-filter: blur(12px);
    background-color: rgba(15, 16, 20, 0.75);
}

.scroll-hide::-webkit-scrollbar {
    display: none;
}

.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Fix for Material Symbols not rendering */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
