:root {
    --bg-color: #0f1014;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-blue: #007aff;
    --accent-pink: #ff2d55;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 480px;
    /* Mobile width simulation */
    margin: 0 auto;
    background-color: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Header */
.app-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.header-right {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.movie-hero {
    position: relative;
    height: 70vh;
    width: 100%;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 40%, #000 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
}

.movie-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.rating-badge {
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.genres {
    display: flex;
    gap: 0.5rem;
}

.genre-tag {
    background: var(--glass-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

/* Actions */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-play,
.btn-trailer {
    flex: 1;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
}

.btn-play {
    background: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

.btn-trailer {
    background: var(--accent-pink);
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.4);
}

/* Content */
.content-section {
    padding: 1rem 1.5rem 3rem;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.blue-line {
    width: 4px;
    height: 1.2rem;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.storyline-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Cast */
.cast-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: none;
    /* Firefox */
}

.cast-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.cast-item {
    text-align: center;
    min-width: 80px;
}

.cast-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #333;
    margin-bottom: 0.5rem;
    object-fit: cover;
    border: 2px solid transparent;
}

.cast-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Payment Page */
.header-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.payment-content {
    padding: 6rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.payment-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.qpay-logo {
    margin-bottom: 1.5rem;
}

.invoice-movie {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #4b5563;
}

.invoice-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #111827;
}

.invoice-status {
    display: inline-block;
    background: #fff7ed;
    color: #c2410c;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.qr-container {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 16px;
    display: inline-block;
}

.qr-code {
    width: 180px;
    height: 180px;
}

.scan-instruction {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.btn-check-payment {
    width: 100%;
    background: #22c55e;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s;
}

.btn-check-payment:active {
    transform: scale(0.98);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: black;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 101;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .close-modal {
        top: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
}

/* Bank Apps */
.bank-apps-container {
    margin-top: 2rem;
    width: 100%;
    text-align: left;
}

.section-label {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
    text-align: center;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    justify-items: center;
}

.bank-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #1a1a1a;
    width: 60px;
}

.bank-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    object-fit: contain;
    background: #f3f4f6;
    padding: 2px;
}

.bank-name {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}