/* Custom properties and resets */
:root {
    --primary-color: #ffb347;
    --primary-gradient: linear-gradient(45deg, #ffb347, #ffcc33);
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffcc33;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: #000 !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 33vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    padding-top: 70px; /* Offset for navbar */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(18,18,18,0.3) 0%, rgba(18,18,18,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.center-text {
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Featured Content */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    min-height: 200px;
}

.content-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 179, 71, 0.3);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image {
    transform: scale(1.05);
}

.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.btn-favorite:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.btn-favorite.is-favorite {
    color: #ff4d4d;
}

.card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.card-info {
    padding: 1.2rem;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* About Us */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Plans */
.plans-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3rem;
    width: 350px;
    text-align: center;
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.featured-plan {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.2);
    transform: scale(1.05);
}

.featured-plan:hover {
    transform: scale(1.05) translateY(-5px);
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.plan-card li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* Horizontal Content List */
.horizontal-list-container {
    margin-bottom: 2.5rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.list-header h3 {
    font-size: 2rem;
    margin: 0;
}

.show-more-link {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

.horizontal-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.horizontal-list::-webkit-scrollbar {
    height: 6px;
}

.horizontal-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Content Chip */
.content-chip {
    flex: 0 0 360px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.content-chip:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.chip-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}

.chip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chip-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.chip-info {
    padding: 1.2rem;
}

.chip-title {
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

/* Devices */
.device-images {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.device-img {
    max-width: 300px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* Footer */
.footer {
    background: #000;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .about-content { flex-direction: column; }
    .device-images { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Authentication & Form Layouts */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-dark);
}

.auth-card {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-logo {
    height: 45px;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--text-main);
}

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

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
}

.btn-google {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: white;
    color: #444;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-google:hover {
    background-color: #f1f1f1;
}

.error-message {
    color: #ff4d4d;
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 20px;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Player Specific */
.video-wrapper { position: relative; }
.countdown-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 100; }
.countdown-content { text-align: center; }
.countdown-timer { font-size: 6rem; font-weight: bold; color: var(--primary-color); margin: 1.5rem 0; }
.playback-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.nav-group h4 { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.playback-nav .content-chip { flex: 1; max-width: none; }

.card-link, .chip-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.content-card { position: relative; }
.content-chip { position: relative; }
