:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --background-color: #111111;
    --surface-color: #1a1a1a;
    --text-color: #f1f1f1;
    --text-secondary: #a3a3a3;
    --accent-gradient: linear-gradient(45deg, #dc2626, #991b1b);
    --card-gradient: linear-gradient(145deg, rgba(220, 38, 38, 0.1), rgba(0, 0, 0, 0.1));
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

main {
    padding-top: 5rem;
    min-height: 100vh;
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.plyr {
    --plyr-color-main: var(--primary-color);
    --plyr-video-background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
}

.plyr--video {
    border: 1px solid rgba(255,255,255,0.1);
}

.controls {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

.download-button {
    background: var(--accent-gradient);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.download-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.download-button svg {
    width: 20px;
    height: 20px;
}

.landing-hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)),
                url('https://images.unsplash.com/photo-1478720568477-152d9b164e26?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
}

.brand-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.3));
}

.video-title-card {
    background: var(--card-gradient);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 1400px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-title-card .title-icon {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.video-title-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.download-section {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.download-title-card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-title-card .download-icon {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.download-title-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
}

.decorative-shape {
    position: fixed;
    z-index: -1;
    opacity: 0.1;
}

.shape-1 {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    border-radius: 69% 31% 56% 44% / 29% 45% 55% 71%;
    animation: morphShape 20s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    border-radius: 41% 59% 45% 55% / 61% 38% 62% 39%;
    animation: morphShape 15s ease-in-out infinite reverse;
}

@keyframes morphShape {
    0% { border-radius: 41% 59% 45% 55% / 61% 38% 62% 39%; }
    50% { border-radius: 69% 31% 56% 44% / 29% 45% 55% 71%; }
    100% { border-radius: 41% 59% 45% 55% / 61% 38% 62% 39%; }
}

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

.limit-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: modalSlide 0.3s ease;
}

.warning-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.token-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-gradient);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.token-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

@keyframes modalSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Limit Modal Styles */
.limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

.limit-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

.modal-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.warning-icon {
    width: 64px;
    height: 64px;
}

.modal-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.token-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.token-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.token-btn svg {
    transition: transform 0.2s ease;
}

.token-btn:hover svg {
    transform: translateX(3px);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Token Input Styles */
.token-input-group {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.token-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.token-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.validate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.validate-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

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

.modal-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.modal-separator::before,
.modal-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-separator span {
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.token-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.token-success {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
    .limit-modal {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .limit-content {
        background: #1a1a1a;
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.modal-info {
    margin-bottom: 1.5rem;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-text {
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-text p {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.info-text p:last-child {
    color: var(--text-color);
    font-weight: 500;
}

.controls-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.action-button {
    background: var(--accent-gradient);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.action-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.watch-button {
    background: linear-gradient(45deg, var(--primary-color), #991b1b);
}

.download-button {
    background: linear-gradient(45deg, #991b1b, var(--primary-color));
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .video-container {
        padding: 0.5rem;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .controls-group {
        flex-direction: column;
        padding: 0 0.5rem;
    }

    .action-button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .video-title-card {
        margin: 0.5rem;
        padding: 1rem;
    }

    .video-title-card h2 {
        font-size: 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .limit-content {
        width: 95%;
        padding: 1.5rem;
    }

    .token-input-group {
        margin: 1rem 0;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-message {
        font-size: 0.9rem;
    }

    header {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .landing-hero {
        height: 70vh;
        padding: 1rem;
    }

    .brand-container {
        gap: 0.5rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .download-section {
        padding: 0 0.5rem;
    }

    .download-title-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }

    .info-box {
        padding: 0.75rem;
    }

    .info-text {
        font-size: 0.8rem;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .action-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .token-btn {
        width: 100%;
    }
}

/* Landscape mode */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .landing-hero {
        height: 100vh;
        padding-top: 4rem;
    }

    .limit-modal {
        align-items: flex-start;
        padding: 1rem;
    }

    .limit-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Tablet optimizations */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }

    .video-container {
        margin: 1rem;
    }
}
