/* Reset and base styles */
:root {
    --primary-color: #000000;
    --secondary-color: #FFFFFF;
    --accent-color: #FBE6AF;
    --border-color: #333333;
    --text-color: #FFFFFF;
    --text-placeholder-color: #AAAAAA;
    --text-light-color: #FFFFFF;
    --text-dark-color: #000000;
    --text-accent-color: #FBE6AF;
    --text-accent-color-dark: #C99C53;
    --text-accent-color-light: #FBE6AF;
    --plyr-color-main: #E5CD87;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

ul {
    list-style-type: none !important;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, 'SF Pro', Arial, sans-serif;
    line-height: 1.2;
    color: var(--text-color);
    background-color: var(--primary-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.app_logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 16px;
}

/* Container */
.container {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.pager {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.center-content {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header */
header {
    text-align: center;
}

header img {
    max-width: 100px;
    height: auto;
}

.app-name {
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
    margin-top: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 16px;
}

/* Main Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: fixed;
}
main {
    margin-top: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    color: var(--text-color);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

.back-btn:active {
    transform: scale(0.95);
}

.back-icon {
    width: 50px;
    height: 30px;
    stroke-width: 2.5;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.header-logo-link:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-header .app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.main-header .app-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu-user-info {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    margin-top: 60px;
}

.mobile-menu-user-mobile {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 8px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Logout button in mobile menu */
.nav-link.logout-nav-link {
    background: transparent;
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    width: 100%;
    margin-top: 8px;
}

.nav-link.logout-nav-link:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

/* Balance Display Styles */
.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.balance-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.balance-link:hover {
    opacity: 0.8;
}

.balance-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}

.balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.balance-expiry {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
    margin-left: 4px;
    white-space: nowrap;
}

.buy-btn {
    background: var(--accent-color);
    color: var(--text-dark-color);
    border: none;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.buy-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-color);
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.user-coins {
    font-size: 12px;
    color: var(--accent-color);
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}


header p {
    font-size: 16px;
    font-weight: 400;
    color: #AAAAAA;
}


.content {
    text-align: center;
}

.download-section a {
    text-decoration: none !important;
    color: #FFFFFF;
    line-height: 1;
}

.download-section {
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid var(--accent-color);
    background-image: url('/dwnld_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    border: 1px solid var(--accent-color);
}

.download-section-wrapper {

    background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.5));
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--accent-color);
}

.download-btn {
    background: white;
    color: #000000;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 150px;
    min-width: 100px;
    box-shadow: unset;
    outline: none;
    border: none;
}

.download-btn img {
    width: 50px;
    height: 50px;
    background-color: #000000;
    object-fit: contain;
    display: flex;
    align-items: center;
    border-radius: 10px;
}

.download-text-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-decoration: none !important;
    color: #FFFFFF;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn:hover {
    background: linear-gradient(135deg, #FBE6AF 0%, #B88A4A 100%);
    box-shadow: 0 4px 12px rgba(251, 230, 175, 0.4);
    transform: translateY(-1px);
}

.download-btn:active {
    background: linear-gradient(135deg, #F5DDA0 0%, #B88A4A 100%);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(251, 230, 175, 0.3);
}

.download-text {
    font-size: 25px;
    line-height: 1.2;
}

.download-subtitle {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
}

/* Button styles */
.btn {
    background: linear-gradient(135deg, #FBE6AF 0%, #C99C53 100%);
    color: #000000;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(251, 230, 175, 0.3);
    height: 56px;
    min-width: 120px;
}

.btn:hover {
    background: linear-gradient(135deg, #FBE6AF 0%, #B88A4A 100%);
    box-shadow: 0 4px 12px rgba(251, 230, 175, 0.4);
    transform: translateY(-1px);
}

.btn:active {
    background: linear-gradient(135deg, #F5DDA0 0%, #B88A4A 100%);
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(251, 230, 175, 0.3);
}

/* Video Container - Card design with background image */
.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #000;
    min-height: 300px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide the separate image element since we're using background */
.video-cover {
    display: none;
}

/* Content positioning */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.video-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.video-description {
    font-size: 16px;
    color: #E0E0E0;
    margin-bottom: 16px;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.video-stat {
    font-size: 13px;
    color: #FFFFFF;
    background-color: rgba(212, 175, 55, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.video-stats span {
    font-size: 12px;
    color: #AAAAAA;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Loading and Error Messages */
.loading-message,
.error-message {
    text-align: center;
    margin-top: 5px;
    padding: 4px;
    border-radius: 8px;
}

.loading-message {
    background: rgba(251, 230, 175, 0.1);
    border: 1px solid rgba(251, 230, 175, 0.3);
    color: #FBE6AF;
}



/* Footer */
footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #333333;
    color: #AAAAAA;
}

/* Responsive design for small screens */
@media (max-width: 480px) {


    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 14px;
    }

    .btn {
        padding: 14px 28px;
        font-size: 14px;
        height: 48px;
    }

    .video-info h2 {
        font-size: 16px;
    }

    .video-info p {
        font-size: 13px;
    }

    .video-stats {
        flex-direction: column;
        gap: 8px;
    }

    .video-cover img {
        max-height: 300px;
    }

    .download-subtitle {
        font-size: 11px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {

    header h1 {
        font-size: 18px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;

    }

    .video-info h2 {
        font-size: 15px;
    }

    .video-info p {
        font-size: 12px;
    }

    .video-cover img {
        max-height: 250px;
    }

    .download-subtitle {
        font-size: 10px;
    }
}

/* ========================================
   LOGIN SYSTEM STYLES
   ======================================== */

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.login-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 12px;
}

.login-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.login-header p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Login Steps */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

/* Login Form */
.login-form {
    width: 100%;
}


.form-group label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Phone Input */
.phone-input-container {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 0;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #8a8a8a;
    box-shadow: 0 0 0 1px rgba(229, 205, 135, 0.1);
}

.country-code {
    color: #E5CD87;
    font-weight: 600;
    padding: 16px 12px;
    background: #333;
    border-radius: 10px 0 0 10px;
    border-right: 1px solid #444;
}

.phone-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    padding: 16px 12px;
    outline: none;
}

.phone-input::placeholder {
    color: #666;
}

/* OTP Input */
.otp-instruction {
    color: #888;
    font-size: 14px;
    margin-bottom: 16px;
}

.otp-instruction span {
    color: #E5CD87;
    font-weight: 600;
}

.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-input {
    width: 100%;
    height: 70px;
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 5px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: #E5CD87;
    box-shadow: 0 0 0 3px rgba(229, 205, 135, 0.1);
}

.otp-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Custom Button (formerly login-btn) - Applied to all call-to-action buttons */
.custom-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFF3C3 0%, #BF8147 100%);
    border: none;
    border-radius: 100px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    gap: 10px;

}

/* Allow flex layout for buttons with icons */
.custom-btn.flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.custom-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 205, 135, 0.3);
}

.custom-btn:active:not(:disabled) {
    transform: translateY(0);
}

.custom-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Support for inline styles override (for secondary buttons) */
.custom-btn[style*="background: rgba"] {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.custom-btn[style*="background: rgba"]:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Keep login-btn as alias for backward compatibility */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFF3C3 0%, #BF8147 100%);
    border: none;
    border-radius: 100px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 205, 135, 0.3);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    transition: opacity 0.3s ease;
}

/* Spinner */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Error Messages */
.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 24px;
}

.resend-section p {
    color: #888;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.resend-btn {
    background: none;
    border: none;
    color: #E5CD87;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.resend-btn:hover {
    color: #ffffff;
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Back Button */
.back-btn {
    background: none;
    border: 1px solid #333;
    color: #888;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #E5CD87;
    color: #E5CD87;
}

/* Login Footer */
.login-footer {
    margin-top: 24px;
    text-align: center;
}

/* Login Responsive Design */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        padding: 24px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .otp-container {
        gap: 8px;
    }

}

/* Animation for step transitions */
.login-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input error state */
.phone-input.error {
    border-color: #ff4444;
}

.phone-input-container.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

/* Success state for OTP */
.otp-input.success {
    border-color: #44ff44;
    background: rgba(68, 255, 68, 0.1);
}

/* Loading overlay for entire modal */
.login-modal.loading .login-container {
    opacity: 0.7;
    pointer-events: none;
}

.login-modal.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top: 3px solid #E5CD87;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* Login Page Styles */
.login-page-container {
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    background-image: url('/movies_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.filter-layer {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.8));

}

.login-page-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-page-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.login-page-header p {
    color: #888;
    font-size: 16px;
    margin: 0;
}

/* Home Page Styles */
.home-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 0;
}

.home-content h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 16px 0;
}

.home-content p {
    color: #888;
    font-size: 18px;
    text-align: center;
    margin: 0 0 48px 0;
}

/* Featured Section */
.featured-section {
    margin-bottom: 48px;
}

.featured-section h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.content-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tv-card {
    width: 100px;
    height: 130px;

 }

.content-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 24px 16px 16px;
    color: #ffffff;
}

.content-overlay h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.content-overlay p {
    font-size: 14px;
    color: #ccc;
    margin: 0;
}

.content-link {
    display: block;
    padding: 16px;
    background: #E5CD87;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.content-link:hover {
    background: #D4B85A;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 48px;
}

.quick-actions h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: #E5CD87;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.action-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #E5CD87;
    color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.user-coins {
    color: #E5CD87;
    font-size: 12px;
}

.logout-btn {
    background: none;
    border: 1px solid #333;
    color: #888;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {

    .login-page-header h2 {
        font-size: 24px;
    }

    .home-content h2 {
        font-size: 28px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {


    .home-content {
        padding: 24px 0;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Responsive Header */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 16px;
    }

    .main-header .app-name {
        font-size: 20px;
    }

    .main-header .app-logo {
        width: 32px;
        height: 32px;
    }

    .back-btn {
        width: 36px;
        height: 36px;
    }



    .user-info {
        display: none;
        /* Hide user info on mobile, show in hamburger menu */
    }


    .balance-display {
        padding: 6px 12px;
        gap: 6px;
    }

    .balance-label {
        font-size: 12px;
    }

    .balance-amount {
        font-size: 12px;
    }

    .balance-expiry {
        font-size: 10px;
        margin-left: 2px;
    }

    .buy-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 12px;
    }

    .back-btn {
        width: 32px;
        height: 32px;
    }


    .main-header .app-name {
        font-size: 18px;
    }

    .mobile-menu {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
}

/* Similar Content Section */
.similar-content-section {
    margin: 40px 0;
}

.similar-content-header {
    margin-bottom: 20px;
}

.similar-content-header h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.similar-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.content-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.similar-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tv-card .similar-card-image {
    width: 100px;
    height: 100px !important;
}
.tv-card .similar-card-image img {
    width: 100px;
    height: 100px;
}

.similar-card-image {
    position: relative;
    width: 100%;
    height: 165px;
    overflow: hidden;
}

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



.similar-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.similar-card-info {
    padding: 5px;

}

.similar-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card-description {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #aaa;
}

.similar-card-year {
    color: #E5CD87;
    font-weight: 500;
}

.similar-card-views {
    color: #999;
}

.similar-card-coins {
    color: #E5CD87;
    font-size: 1rem;
    font-weight: 600;
}

/* Preview Page Styles */
.preview-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 20px;
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
}

.preview-image-container {
    position: relative;
    width: 100%;
    height: 70vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 30%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.preview-content {
    width: 100%;
    color: white;
}

.preview-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.preview-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.9;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.preview-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preview-stat {
    font-size: 1.1rem;
    color: #E5CD87;
    font-weight: 500;
}

.preview-stat strong {
    color: white;
    font-weight: 700;
}

.preview-badge {
    display: inline-block;
    background: rgba(229, 205, 135, 0.2);
    color: #E5CD87;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.golden_text {
    color: #E5CD87;
}

.preview-actions {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.preview-play-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.preview-play-btn:hover {
    transform: scale(1.1);
}

.preview-play-btn:active {
    transform: scale(0.95);
}

.preview-play-btn img {
    width: 80px;
    height: 80px;
    display: block;
}

.plan-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 20px;

}

.plan-tab-chip {
    padding: 10px 15px;
    border: 1px solid #929292;
    background: transparent;
    color: #ccc;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.plan-tab-chip:hover {
    border-color: #E5CD87;
    color: #E5CD87;
    background: rgba(229, 205, 135, 0.1);
}

.plan-tab-chip.active {
    background: #E5CD87;
    color: #000;
    border-color: #E5CD87;
    font-weight: 600;
}

.plan-group-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(229, 205, 135, 0.3), transparent);
    margin: 20px 0;
}

.plan-card{
    padding: 10px;
    border: 1px solid #929292;
    margin-bottom: 10px;
    border-radius: 10px;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.featured-plan-card{
    padding: 40px 20px;
}
.plan-details{
    font-size: 11px;
    color: #888;
}
.plan-desc{
    position: absolute;
    top: 20px;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 10px;
    color: #000;
    border-radius: 20px;
    font-size: 10px;
}
.text-muted{
    color: #888;
    font-size: 12px;
}
.coins_price{
    margin-top: 10px;
    font-size: 22px;
    line-height: 1;
}

.other-plans-title {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.payment-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(229, 205, 135, 0.2);
}

.payment-modal-header h2 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.payment-modal-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.payment-modal-close:hover {
    color: #E5CD87;
}

.payment-modal-body {
    padding: 0;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(229, 205, 135, 0.05);
    margin-bottom: 12px;
}

.payment-method-option:hover {
    border-color: #E5CD87;
    background: rgba(229, 205, 135, 0.1);
    transform: translateY(-2px);
}

.payment-method-icon {
    width: 85px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.payment-method-icon img {
    max-width: 60px;
    max-height: 40px;
    object-fit: contain;
}

.payment-method-info h3 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.payment-method-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.sms-consent-message {
    padding: 16px;
    background: rgba(229, 205, 135, 0.1);
    border: 1px solid rgba(229, 205, 135, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sms-instructions {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.sms-instructions p {
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
}

.sms-instructions strong {
    color: #E5CD87;
}

.payment-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.payment-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-btn.primary {
    background: linear-gradient(135deg, #FBE6AF 0%, #E5CD87 100%);
    color: #000000;
}

.payment-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(251, 230, 175, 0.4);
}

.payment-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .payment-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .payment-modal-header h2 {
        font-size: 20px;
    }
    
    .payment-modal-actions {
        flex-direction: column;
    }
}

/* Responsive Preview Styles */
@media (max-width: 768px) {
    .preview-page {
        padding: 15px;
    }

    .preview-image-container {
        height: 60vh;
        border-radius: 12px;
    }

    .preview-overlay {
        padding: 30px 20px;
    }

    .preview-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .preview-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .preview-meta {
        gap: 20px;
        margin-bottom: 15px;
    }

    .preview-stat {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .preview-page {
        padding: 10px;
    }

    .preview-image-container {
        height: 50vh;
        border-radius: 8px;
    }

    .preview-overlay {
        padding: 20px 15px;
    }

    .preview-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .preview-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .preview-meta {
        gap: 15px;
        margin-bottom: 12px;
    }

    .preview-stat {
        font-size: 0.9rem;
    }

    .preview-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

.home-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.home-content-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Home Tabs */
.home-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.home-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.home-tab:hover {
    border-color: #E5CD87;
    color: #E5CD87;
    background: rgba(229, 205, 135, 0.1);
}

.home-tab.active {
    background: #E5CD87;
    color: #000;
    border-color: #E5CD87;
    font-weight: 600;
}

/* Content Rows Container */
.content-rows-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* margin-top: 24px; */
}

/* Content Row */
.content-row {
    width: 100%;
}

.content-row-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 0 4px;
}

/* Horizontal Scrolling Cards Container */
.content-row-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 205, 135, 0.3) transparent;
}

.content-row-cards::-webkit-scrollbar {
    height: 6px;
}

.content-row-cards::-webkit-scrollbar-track {
    background: transparent;
}

.content-row-cards::-webkit-scrollbar-thumb {
    background: rgba(229, 205, 135, 0.3);
    border-radius: 3px;
}

.content-row-cards::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 205, 135, 0.5);
}

/* Adapt similar content card for horizontal layout */
.content-row-cards .content-card {
    flex: 0 0 auto;
    /* width: 120px;
    min-width: 120px;
    max-width: 120px; */
}

.content-row-cards .similar-card-image {
    /* height: 165px; */
}

/* AFCON Section */
.afcon-section {
    width: 100%;
    /* margin-top: 24px; */
}

.afcon-card {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.afcon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.afcon-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.afcon-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

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

.afcon-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.afcon-card-info {
    width: 100%;
}

.afcon-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.afcon-card-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.afcon-card-coins img,
.afcon-card-coins .coin-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Continue Watching Section */
.continue-watching-row {
    margin-bottom: 32px;
}

.continue-watching-image {
    position: relative;
}

.continue-watching-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1;
}

.continue-watching-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #E5CD87 0%, #BF8147 100%);
    transition: width 0.3s ease;
    border-radius: 0 0 8px 8px;
}

/* Ensure duration badge is above progress bar */
.continue-watching-image .similar-card-duration {
    z-index: 2;
    bottom: 12px;
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
    .home-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .home-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .content-row-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .content-row-cards {
        gap: 10px;
    }
    
    .content-row-cards .content-card {
      
    }
    
    .content-row-cards .similar-card-image {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .home-tabs {
        gap: 6px;
    }
    
    .home-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .content-row-cards .content-card {
        
    }
    
    .content-row-cards .similar-card-image {
        /* height: 125px; */
    }
}

/* News Column Layout (Single Column) */
.news-grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.news-grid-container .news-card {
    width: 100%;
    max-width: 100%;
}
.news-card .similar-card-title {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
}



.news-grid-container .similar-card-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.news-card .similar-card-image{
    border-radius: 0px;
}

.news-grid-container .similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-grid-container .similar-card-info {
    padding: 12px 0;
}

.news-grid-container .similar-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-grid-container .similar-card-coins {
    display: none; /* Hide coins for news */
}

@media (max-width: 768px) {
    .news-grid-container {
        gap: 16px;
    }
    
    .news-grid-container .similar-card-image {
        height: 200px;
    }
    
    .news-grid-container .similar-card-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-grid-container {
        gap: 12px;
    }
    
    .news-grid-container .similar-card-image {
        height: 180px;
    }
    
    .news-grid-container .similar-card-title {
        font-size: 13px;
    }
}

/* ========================================
   WATCH CLIENT PAGE STYLES
   ======================================== */

.watch-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    color: #ccc;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--primary-color, #000000);
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(229, 205, 135, 0.3);
    border-top: 4px solid #E5CD87;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
}

/* Featured Title Image */
.featured-title-image-container {
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
    max-width: 200px;
}

.featured-title-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.content-meta {
    margin-bottom: 20px;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.content-meta .meta-item {
    display: inline;
}

.content-meta .meta-item:not(:last-child)::after {
    content: " • ";
    color: #E5CD87;
    font-weight: bold;
    margin: 0 2px;
}

.content-meta .meta-label {
    font-weight: 600;
    color: #E5CD87;
}

.content-meta .meta-value {
    color: #ccc;
}

.error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.error-content {
    text-align: center;
    color: #ccc;
}

.error-content h2 {
    color: #ff6b6b;
    margin-bottom: 16px;
}

.action-btn.liked {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.action-btn.favorited {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Cover Container (Preview Mode) */
.cover-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Plyr Player */
.plyr-player {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.plyr-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Override for fullscreen to maintain aspect ratio */
.plyr--fullscreen-active .plyr-player video,
.plyr--fullscreen-active video {
    object-fit: contain !important;
}

/* Plyr Custom Styling */
.plyr--video {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* Custom play button for Plyr - same as preview */
.plyr__control--overlaid {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.plyr__control--overlaid svg {
    display: none !important; /* Hide default Plyr SVG */
}

.plyr__control--overlaid .custom-play-icon {
    width: 80px;
    height: 80px;
    display: block;
}

.plyr__progress__played {
    background: #E5CD87;
}

.plyr__menu__container {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
}

.plyr__menu__container .plyr__control {
    color: white;
}

.plyr__menu__container .plyr__control:hover {
    background: rgba(229, 205, 135, 0.2);
    color: #E5CD87;
}
.plyr__poster{
    background-size: cover !important;
}
/* Preview Mode Overlay (on cover image) */
.preview-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
}

.preview-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease;
    z-index: 3;
}

.preview-play-button .play-button-icon {
    width: 80px;
    height: 80px;
    display: block;
}

.preview-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.preview-play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Activation Button Container */
.activation-button-container {
    margin-top: 20px;
    width: 100%;
}

.coin-icon-small {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Activation Modal */
.activation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activation-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.activation-modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.activation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(229, 205, 135, 0.2);
}

.activation-modal-header h2 {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.activation-modal-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.activation-modal-close:hover {
    color: #E5CD87;
}

.activation-modal-body {
    padding: 0;
}

.activation-content-info {
    margin-bottom: 20px;
}

.activation-content-info h3 {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.activation-coins-cost {
    color: #E5CD87;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.activation-balance-info {
    padding: 16px;
    background: rgba(229, 205, 135, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.activation-balance-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.activation-balance-amount {
    color: #E5CD87;
    font-weight: 600;
    font-size: 18px;
    align-items: center;
}


.activation-error {
    padding: 12px 16px;
    background: rgba(255, 105, 105, 0.1);
    border: 1px solid rgba(255, 105, 105, 0.3);
    border-radius: 12px;
    color: #FF6969;
    font-size: 14px;
    margin-bottom: 20px;
}

.activation-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* User Balance Display on Plans Page */
.user-balance-display {
    margin-bottom: 20px;
}

.balance-card {
    background: rgba(229, 205, 135, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.balance-card:hover {
    border-color: rgba(229, 205, 135, 0.5);
    background: rgba(229, 205, 135, 0.15);
}

.balance-info {
    display: column;
    align-items: center;
    gap: 2px;
}

.balance-info span:first-child,
.balance-label {
    color: #ccc;
    font-size: 14px;
}

#userBalanceDisplay {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
}

.logout-btn-plans {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn-plans:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

@media (max-width: 768px) {
    .activation-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .activation-modal-header h2 {
        font-size: 20px;
    }
    
    .activation-modal-actions {
        flex-direction: column;
    }
    
    .preview-overlay-content {
        padding: 30px 20px;
    }
    
    .preview-overlay-title {
        font-size: 24px;
    }
    
    .balance-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .logout-btn-plans {
        width: 100%;
        text-align: center;
    }
}

/* Time Left Display for LiveStream */
.time-left-display {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    border: 1px solid rgba(229, 205, 135, 0.3);
    pointer-events: none;
}

.time-left-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.time-left-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

/* Extra-Time Plans */
.extra-time-plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.extra-time-plan-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-time-plan-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(229, 205, 135, 0.5);
    transform: translateY(-2px);
}

.extra-time-plan-card.selected {
    background: rgba(229, 205, 135, 0.15);
    border-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.extra-time-plan-card .plan-info h4 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.extra-time-plan-card .plan-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 4px 0;
}

.extra-time-plan-card .plan-cost {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.extra-time-plan-card .coin-icon {
    width: 16px;
    height: 16px;
}

.extra-time-plan-card.insufficient-coins {
    opacity: 0.7;
    cursor: not-allowed;
}

.extra-time-plan-card.insufficient-coins:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.buy-coins-btn {
    background: var(--accent-color);
    color: var(--text-dark-color);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    width: 100%;
}

.buy-coins-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}