/* Styles for login/register/browse/watch — built on the existing
   :root variables from assets/css/style.css (loaded before this file).
   No new color palette introduced. */

/* Bootstrap's own .text-muted (a light-mode gray, !important) is barely
   legible against this dark theme — repoint it at the site's own
   --text-muted token, which every other "muted" bit of copy on the site
   already uses via its own component classes. */
.text-muted {
    color: var(--text-muted) !important;
}

.auth-section {
    /* top padding clears the fixed navbar (~89px) with room to breathe,
       matching .page-header's convention elsewhere on the site */
    padding: 150px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--dark-bg-light);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: var(--shadow-xl);
}

.auth-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-card .form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-card .form-control {
    background: var(--dark-bg);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.auth-card .form-control:focus {
    background: var(--dark-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255,71,87,0.25);
}

.auth-card .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.auth-footer-text {
    text-align: center;
    margin-top: 18px;
    color: var(--text-secondary);
}

.auth-footer-text a {
    color: var(--primary-light);
    font-weight: 600;
}

.about-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

/* Hero slider — sits directly under the fixed navbar and handles that
   clearance itself (margin-top), so .browse-section below only needs
   normal breathing-room padding, not full nav clearance. */
.hero-slider {
    margin-top: 0;
    position: relative;
}

.hero-slide {
    height: 85vh;
    min-height: 480px;
    max-height: 800px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 29, 46, 0.35) 0%, rgba(26, 29, 46, 0.95) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.hero-slide-content h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 14px 0 22px;
}

.hero-slide-fallback {
    background: var(--gradient-dark);
}

/* Bootstrap's default carousel arrows/dots are too subtle on this dark hero */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 8%;
    opacity: 0.8;
}

.hero-slider .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Browse */
.browse-section {
    padding: 50px 0 60px;
}

.browse-tabs,
.auth-tabs {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.browse-tabs .nav-link,
.auth-tabs .nav-link {
    color: var(--text-secondary);
    border: none;
    font-weight: 600;
}

.browse-tabs .nav-link.active,
.auth-tabs .nav-link.active {
    color: var(--text-primary);
    background: transparent;
    border-bottom: 3px solid var(--primary-color);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.content-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: var(--dark-bg-light);
    transition: var(--transition);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.content-card-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-bg);
    position: relative;
}

.badge-premium {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--gradient-secondary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.content-card-title {
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.service-card {
    background: var(--dark-bg-light);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card-photo {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-bg);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.service-card-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 29, 46, 0) 40%, rgba(26, 29, 46, 0.85) 100%);
}

.service-card-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.service-card-body {
    padding: 20px 24px 24px;
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--text-secondary);
}

.service-card-price {
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 14px !important;
}


.browse-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.pricing-section {
    padding: 60px 0 100px;
}

.section-heading {
    font-weight: 700;
    margin-bottom: 30px;
}

/* Watch */
.watch-section {
    padding: 150px 0 100px;
    min-height: 70vh;
}

.watch-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.watch-description {
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 24px;
}

.player-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.player-wrapper video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.subscribe-cta {
    background: var(--dark-bg-light);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    margin-bottom: 30px;
}

.subscribe-cta h3 {
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.plan-grid {
    /* flex + wrap + centered, not CSS grid — with a dynamic plan count
       (currently 4), a grid leaves a leftover last row stuck at the left
       edge; flexbox centers whatever doesn't fill a full row instead. */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 980px;
    margin: 24px auto 0;
}

.plan-card {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    flex: 1 1 200px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.plan-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0;
}

.plan-card .text-muted {
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.plan-card .btn {
    margin-top: auto;
}

.episode-picker {
    background: var(--dark-bg-light);
    border-radius: 12px;
    padding: 24px;
}

.season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.season-tab {
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--dark-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.season-tab.active {
    background: var(--gradient-primary);
    color: #fff;
}

.episode-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.episode-list li {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.episode-list li a {
    color: var(--text-secondary);
}

.episode-list li.active {
    background: rgba(255,71,87,0.15);
}

.episode-list li.active a {
    color: var(--text-primary);
    font-weight: 600;
}
