/* Global Styles */
:root {
    --primary-color: #ffcc00;
    /* Yellow accent */
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --secondary-text-color: #a0a0a0;
    --card-bg: #1f1f1f;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px;
    /* Space for fixed download button */
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 800;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text .play-icon {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.lang-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

/* Navigation Removed */

/* Main Content */
main {
    padding: 1.25rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    /* Ensure content is above video if any background exists */
}

.hero-section h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-cards {
    position: relative;
    height: 300px;
    /* Fixed height for mobile display */
    display: flex;
    justify-content: center;
}

/* Stacked Card Effect */
.hero-card {
    width: 85%;
    max-width: 320px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: absolute;
    top: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-card.card-1 {
    z-index: 2;
    left: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.8)), url('1.png') no-repeat center/cover;
    /* Using 1.png */
    background-color: #333;
    /* Fallback */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    text-align: left;
}

.hero-card-image {
    z-index: 1;
    right: 0;
    width: 60%;
    height: 85%;
    top: 7.5%;
    background: url('2.png') no-repeat center/cover;
    /* Using 2.png */
    border-radius: 12px;
    position: absolute;
    opacity: 0.6;
    transform: translateX(20px) scale(0.9);
}

.tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Button in Hero */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    width: 100%;
    transition: transform 0.2s;
}

.cta-button:active {
    transform: scale(0.98);
}

.play-symbol {
    font-size: 0.8rem;
}

/* Content Section */
.content-section {
    margin-top: 2rem;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.drama-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.drama-item {
    display: flex;
    gap: 1rem;
    background-color: var(--card-bg);
    padding: 0.75rem;
    border-radius: 12px;
}

.drama-poster {
    width: 80px;
    height: 110px;
    border-radius: 8px;
    background-color: #333;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.placeholder-poster {
    background-image: url('1.png');
}

.placeholder-poster-2 {
    background-image: url('2.png');
}

.placeholder-poster-3 {
    background-image: url('3.png');
}

.placeholder-poster-4 {
    background-image: url('4.png');
}

.drama-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drama-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.genre-tag {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 1px solid var(--primary-color);
    padding: 1px 6px;
    border-radius: 4px;
    width: fit-content;
}

.drama-info p {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.drama-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #888;
}

.rating {
    color: #ff9900;
    font-weight: 700;
}

/* Sticky Download Button */
.sticky-download {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 1) 80%, rgba(10, 10, 10, 0));
    z-index: 999;
    display: flex;
    justify-content: center;
}

.download-fab {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 800;
    text-align: center;
    padding: 1rem 3rem;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s;
}

.download-fab:active {
    transform: scale(0.98);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    cursor: pointer;
}

.modal-actions .download-fab {
    position: static;
    /* Reset from global static download */
    width: 100%;
    display: block;
}

/* Responsive adjustments for larger screens if needed */
@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        /* Force mobile width on desktop */
        border-left: 1px solid #333;
        border-right: 1px solid #333;
        min-height: 100vh;
    }
}