:root {
    --bg-color: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --primary-gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(59, 130, 246, 0.5);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.8), transparent);
    position: relative;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 6px;
    box-shadow: 0 0 10px var(--glow-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    /* Align with header border */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 -2px 10px var(--accent-blue);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 64px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 500;
}

.sidebar-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.sidebar-icon:hover,
.sidebar-icon.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-icon.profile {
    margin-top: auto;
    margin-bottom: 2rem;
}

/* Main Layout */
.container {
    max-width: none;
    margin: 0;
    margin-left: 64px;
    padding: 0;
    width: calc(100% - 64px);
    height: 100vh;
    overflow: hidden;
}

/* Floating Input Bar (Sora Style) */
.input-bar-container {
    position: fixed;
    bottom: 24px;
    left: calc(50% + 32px);
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    z-index: 1000;
}

.input-bar {
    background: rgba(17, 17, 17, 0.85);
    /* Semi-transparent dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.75rem;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced gap */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.sora-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    min-height: 24px;
    max-height: 120px;
    /* Max height before scrolling */
    resize: none;
    /* Prevent manual resize */
    overflow-y: auto;
    /* Show scrollbar when needed */
    line-height: 1.5;
}

/* Custom Scrollbar for Textarea */
.sora-input::-webkit-scrollbar {
    width: 6px;
}

.sora-input::-webkit-scrollbar-track {
    background: transparent;
}

.sora-input::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.sora-input::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.sora-input::placeholder {
    color: #888;
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.actions-left,
.actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    background: #222;
    border: none;
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: white;
    background: #333;
}

.pill-btn {
    background: #222;
    color: #ccc;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background 0.2s;
    white-space: nowrap;
}

.pill-btn:hover {
    background: #333;
    color: white;
}

.generate-btn {
    background: #333;
    color: #ccc;
    border: none;
    /* width: 32px; Remove fixed width */
    height: 32px;
    padding: 0 12px;
    /* Add padding for text */
    border-radius: 16px;
    /* Pill shape */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    gap: 6px;
    /* Space between text and icon */
}

.generate-btn:hover {
    background: white;
    color: black;
}

/* Recent Videos Grid - Full Screen */
.recent-videos {
    width: 100%;
    /* Fill remaining height: 100vh - header height (approx 75px) */
    height: calc(100vh - 75px);
    margin-bottom: 0;
    overflow: hidden;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    /* Tiny gap for "split" look */
    width: 100%;
    height: 100%;
    background: #000;
}

/* Hide the 5th+ video on desktop */
@media (min-width: 901px) {
    .video-card:nth-child(n+5) {
        display: none;
    }
}


.video-card {
    aspect-ratio: auto;
    background: #000;
    /* Match grid bg */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    border: none;
    transition: none;
    position: relative;
    height: 100%;
    /* Fill the grid cell */
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: none;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(30, 41, 59, 0.7);
    /* Darker blue-grey background */
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    /* Hidden by default, shown on hover */
    opacity: 0;
    pointer-events: none;
}

/* Show mute button when hovering the CARD */
.video-card:hover .mute-btn {
    opacity: 1;
    pointer-events: auto;
}

.mute-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: scale(1.05);
}

.mute-btn i {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .recent-videos {
        overflow: visible;
        /* Allow content to flow naturally */
        height: auto;
        /* Remove fixed height constraint */
        margin-bottom: 7rem;
        /* Space for fixed footer */
    }

    .videos-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        height: auto;
        /* Remove fixed height constraint */
        gap: 0;
        /* Remove gap between grid items */
        padding: 0;
        /* Full bleed */
        align-content: start;
        /* Prevent rows from stretching to fill vertical space */
    }

    .video-card {
        width: 100%;
        min-width: 0;
        border-radius: 0;
        /* Remove rounding for seamless join */
        border: none;
        background: transparent;
        aspect-ratio: 9 / 16;
        /* Vertical Portrait Ratio */
        height: auto;
        /* Allow height to adjust based on width and aspect ratio */
        max-height: none;
        position: relative;
    }

    /* Requirement: "Display exactly 2 videos on mobile" */
    .video-card:nth-child(n+3) {
        display: none;
    }

    /* Adjust overlay for auto-play feel - maybe hide play button if it's auto playing? */
    .play-overlay {
        display: none;
    }

    .card-video {
        border-radius: 0;
        /* Remove rounding for seamless join */
    }

    /* Add some padding container for the cards if we want them not to be full-screen-width */
    .video-card {
        padding: 0;
        /* Strict 50% split - no padding */
        box-sizing: border-box;
    }

    .hero-title {
        display: none;
    }

    .container {
        padding-bottom: 180px;
        padding-top: 0;
        /* Pin to top - remove padding */
    }

    .hero-section {
        align-items: stretch;
        bottom: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* .videos-grid handled by 900px rule above now */

    .main-header {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        /* Simple hiding for mobile, high-fidelity usually requires burger menu but staying compliant with "minimal" */
    }

    /* MATCH SKETCH: Distinct Capsule Input Bar */
    /* MATCH SKETCH: Distinct Capsule Input Bar */
    .input-bar-container {
        left: 50%;
        transform: translateX(-50%);
        width: 95%;
        /* Wider on small screens */
        bottom: 80px;
        /* Shift up to sit above the new bottom nav */
    }


    /* Transform Sidebar to Bottom Nav */
    .sidebar {
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        left: 0;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: #000;
        padding-top: 0;
        z-index: 2000;
        /* Ensure it's on top */
    }

    .sidebar-icon {
        margin: 0;
        /* Reset margins */
        font-size: 1.4rem;
        /* Slightly larger on mobile */
    }

    .sidebar-icon.profile {
        margin: 0;
        /* Reset profile margin */
    }

    /* Adjust main container to account for missing sidebar */
    .container {
        margin-left: 0;
        width: 100%;
        padding-bottom: 140px;
        /* Space for Bottom Nav + Input Bar */
    }

}

/* Settings Popover */
.settings-popover {
    position: absolute;
    bottom: 100%;
    /* Above the input bar */
    right: 0;
    width: 280px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 0.5rem;
    color: #eee;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    z-index: 2000;
}

.settings-popover.hidden {
    display: none;
}

.menu-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: fadeIn 0.2s ease;
}

.menu-view.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item,
.menu-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.menu-item:hover,
.menu-option:hover {
    background: #222;
}

.menu-item .label,
.menu-option span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item .value {
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

/* Submenu Header */
.menu-header {
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-header:hover {
    color: white;
}

/* Check icon styles */
.check-icon.hidden {
    opacity: 0;
}

.check-icon {
    color: white;
    font-size: 0.8rem;
}

/* Top Text Bar */
.top-text-bar {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .top-text-bar {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
        background: black;
        /* Ensure distinct bar look on mobile */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    pointer-events: none;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-container.hidden {
    display: none;
}

.toast-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.3);
    /* Red tint border */
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.1);
    /* Red glow */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 500;
    pointer-events: auto;
}

.toast-content i {
    color: #ef4444;
    /* Red icon */
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Settings Pill Button */
.settings-btn {
    background: #222;
    color: #ccc;
    border: none;
    height: 32px;
    padding: 0 16px;
    /* Pill padding */
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    gap: 8px;
    /* Space between icon and text */
    font-family: var(--font-main);
}

.settings-btn:hover {
    background: #333;
    color: white;
}

/* Settings Status Badges */
.settings-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.setting-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.setting-badge i {
    font-size: 0.7rem;
}

/* Stacked Settings Wrapper */
/* Stacked Settings Wrapper */
.settings-wrapper {
    display: flex;
    flex-direction: row;
    /* Horizontal */
    align-items: center;
    gap: 8px;
    /* Increased gap */
}

/* Adjusted Settings Status for Stacked View */
.settings-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    /* Small text */
    color: var(--text-secondary);
    opacity: 0.8;
}

/* =========================================
   Profile Page Styles
   ========================================= */

.profile-container {
    padding-top: 80px;
    /* Space for header if fixed, or just general padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    /* Allow scrolling */
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: #555;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    font-size: 1rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    justify-content: center;
}

.tab-item {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tab-item:first-child {
    color: white;
    /* Active state simulation */
}

.tab-item:first-child::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

/* Drafts Section */
.drafts-section {
    width: 100%;
    max-width: 800px;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.drafts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.draft-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: #0f0f0f;
    /* Darker card background */
    padding: 1.5rem;
    /* Increased padding */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.draft-item:hover {
    background: #141414;
}

.draft-thumbnail {
    width: 180px;
    /* Fixed width equal to max landscape width */
    display: flex;
    justify-content: center;
    /* Center the portrait video in this space */
    flex-shrink: 0;
}

.generating-card {
    /* Default is 9:16 */
    width: 100px;
    background: #111;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ratio-9-16 {
    aspect-ratio: 9 / 16;
}

.ratio-16-9 {
    aspect-ratio: 16 / 9;
    width: 140px;
    /* Slightly wider for landscape to feel balanced */
}

.generating-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    /* Deeper blur for foggy effect */
    opacity: 0.8;
    transform: scale(1.2);
    /* Scale up to hide blur edges */
}

.generating-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.generating-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Darken slightly */
    z-index: 1;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-icon-overlay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon-overlay.hidden {
    display: none;
}

.draft-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 0.25rem;
    flex-grow: 1;
    align-items: flex-start;
    /* Ensure left alignment */
}

.draft-prompt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #eee;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    /* Removed flex-box for line-clamp */
    width: 100%;
    /* Scrollable settings */
    max-height: 80px;
    /* Fixed height for scrolling */
    overflow-y: auto;
    /* Enable vertical scroll */
    text-align: left;
    padding-right: 4px;
    /* Space for scrollbar */

    /* Text Wrapping Fixes */
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Custom scrollbar for prompt */
.draft-prompt::-webkit-scrollbar {
    width: 4px;
}

.draft-prompt::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.draft-prompt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.draft-prompt::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.draft-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    /* Ensure left alignment */
    width: 100%;
}

.draft-settings {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.draft-status {
    font-size: 0.8rem;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.draft-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: inline-block;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    text-decoration: none;
    width: fit-content;
    margin-top: 4px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.download-btn.hidden {
    display: none;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
}



@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    color: var(--text-secondary);
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Responsive Profile */
@media (min-width: 901px) {

    /* Desktop adjustments */
    .profile-header {
        max-width: 800px;
    }
}

@media (max-width: 900px) {
    .profile-container {
        padding-top: 2rem;
        padding-bottom: 100px;
        /* Bottom nav space */
    }

    .profile-header {
        padding: 0 1rem;
    }

    .draft-item {
        padding: 0.75rem;
        gap: 1rem;
    }

    .generating-card {
        width: 80px;
    }

    .generating-card.ratio-16-9 {
        width: 140px;
        /* Larger width for landscape on mobile */
    }

    .draft-prompt {
        font-size: 0.9rem;
    }
}

.setting-text {
    white-space: nowrap;
}

.separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
}

/* Play Icon Overlay for Completed Generation */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s ease;
}


.play-icon-overlay i {
    font-size: 24px;
    color: white;
    margin-left: 4px;
    /* Optical adjustment */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.play-icon-overlay.hidden {
    display: none;
}


/* Add white border to video cards in profile as requested */
.profile-container .video-card {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    /* Adding simple radius for better look */
    overflow: hidden;
}

/* Custom Verification Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content-wrapper {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay:not(.hidden) .modal-content-wrapper {
    transform: scale(1);
}

.modal-message {
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-ok-btn {
    background: var(--text-primary);
    color: black;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    font-family: var(--font-main);
}

.modal-ok-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}