/* --- NETFLIX-STYLE CINEMATIC THEME --- */

:root {
    /* Palette - Netflix Dark */
    --bg-color: #141414;
    --surface-color: #181818;
    --surface-hover: #2f2f2f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --brand-red: #E50914;
    --brand-red-hover: #F40612;
    --border-color: #333333;
    --glass-border: rgba(255, 255, 255, 0.18);
    --footer-height: 96px;
    --ai-en-bg: rgba(56, 189, 248, 0.12);
    --ai-en-border: rgba(56, 189, 248, 0.28);
    --ai-pt-bg: rgba(34, 197, 94, 0.1);
    --ai-pt-border: rgba(74, 222, 128, 0.26);

    /* Gradients & overlays */
    --hero-gradient: linear-gradient(to top, #141414, transparent 150%);
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* --- HEADER / NAVIGATION --- */
.netflix-remote-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 68px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, transparent);
    display: flex;
    align-items: center;
    padding: 0 4%;
    transition: background-color 0.4s;
}

.netflix-remote-header.scrolled {
    background-color: #141414;
}

.logo-big {
    color: var(--brand-red);
    font-size: 1.8rem;
    font-weight: 800;
    margin-right: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    font-weight: 500;
}

/* --- HERO BANNER (BILLBOARD) --- */
.hero-billboard {
    position: relative;
    height: 85vh;
    /* Very Tall */
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-bottom: -150px;
    /* Slight overlap with rows */
}

/* Gradient Overlay - Crucial for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 20%, transparent 0%, #141414 130%),
        linear-gradient(to top, #141414 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 40%;
    margin-left: 4%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-play {
    background-color: white;
    color: black;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

.primary-btn {
    background: linear-gradient(135deg, #E50914, #F40612);
    color: #fff;
    padding: 0.95rem 1.8rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
    filter: brightness(1.05);
}

/* --- ROWS (SLIDERS) --- */
.category-row {
    position: relative;
    padding: 0 4%;
    margin-bottom: 3vw;
    z-index: 20;
}

.row-header {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: #e5e5e5;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.3s;
}

.row-header:hover {
    color: #fff;
}

/* Horizontal Scroll Container */
.row-slider {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 0 2rem 0;
    /* Extra bottom padding for hover scale */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.row-slider::-webkit-scrollbar {
    display: none;
}

/* Grid Layout Container - Alternative to horizontal scroll */
.row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem 0 2rem 0;
}

/* Adjust card sizing for grid layout */
.row-grid .poster-card {
    width: 100%;
}

/* --- CARDS (POSTERS) --- */
.poster-card {
    flex: 0 0 auto;
    width: 200px;
    background: #1a1a1a;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.poster-image-wrapper {
    position: relative;
    width: 100%;
    height: 112px;
    overflow: hidden;
}

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

.poster-card:hover .poster-image {
    transform: scale(1.1);
}

/* Title area below image - ALWAYS VISIBLE */
.poster-info {
    padding: 10px 12px;
    background: #1a1a1a;
}

.poster-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-subtitle {
    font-size: 0.8rem;
    color: #bdbdbd;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poster-tags {
    font-size: 0.75rem;
    color: #46d369;
    font-weight: 600;
}

/* Hover overlay (for play button, optional) */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 112px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-overlay::after {
    content: '▶';
    font-size: 2rem;
    color: white;
}

.poster-card:hover .poster-overlay {
    opacity: 1;
}

/* Touch devices: always show play overlay since hover doesn't exist */
@media (hover: none) and (pointer: coarse) {
    .poster-overlay {
        opacity: 0.7;
    }
    .poster-card:active .poster-overlay {
        opacity: 1;
    }
}

/* Hover Effect - The "Pop" */
.poster-card:hover {
    transform: scale(1.08);
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

/* --- FEATURED CARD (Free Conversation) --- */
.featured-row {
    margin-bottom: 2rem;
}

.featured-card {
    display: flex;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.featured-image-wrapper {
    position: relative;
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.featured-card:hover .featured-play-icon {
    opacity: 1;
}

.featured-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E50914, #F40612);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.featured-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-top: 0.25rem;
}

.featured-subtitle {
    font-size: 1rem;
    color: #b3b3b3;
    font-style: italic;
}

.featured-description {
    font-size: 0.9rem;
    color: #999;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.featured-btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
    margin-top: 0.5rem;
}

.featured-btn:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* Responsive featured card */
@media (max-width: 600px) {
    .featured-card {
        flex-direction: column;
        max-width: 100%;
    }

    .featured-image-wrapper {
        width: 100%;
        min-height: 180px;
    }

    .featured-title {
        font-size: 1.3rem;
    }
}

/* --- LOGIN PAGE (WHO'S WATCHING) --- */
.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 16px 80px;
    background: radial-gradient(circle at 20% 20%, rgba(229, 9, 20, 0.12), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(109, 109, 110, 0.18), transparent 35%),
        #0f0f0f;
    overflow: hidden;
}

.login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.7) 100%),
        url('https://images.unsplash.com/photo-1522199992901-9e1e0d0bc1c4?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    filter: saturate(0.9);
    z-index: 0;
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.profile-gate-container {
    text-align: center;
    animation: fadeIn 0.8s ease;
    background: rgba(18, 18, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.profile-gate-label {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #fff;
}

.profile-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    justify-content: center;
    list-style: none;
    margin-top: 12px;
}

.profile-item {
    cursor: pointer;
    padding: 14px;
    border-radius: 14px;
    background: rgba(32, 32, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    background-size: cover;
    background-color: #333;
    border: 2px solid transparent;
    transition: border 0.2s, transform 0.2s ease;
    margin-bottom: 1rem;
    position: relative;
    /* Static Avatar placeholders */
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/0/0b/Netflix-avatar.png');
}

.profile-item:hover .profile-avatar {
    border-color: var(--brand-red);
    transform: translateY(-2px);
}

.profile-name {
    color: #808080;
    font-size: 1.3rem;
    transition: color 0.2s;
}

.profile-item:hover .profile-name {
    color: #fff;
}

/* Form hidden inside profile or separate? Let's use clean form */
.login-form-container {
    background: rgba(12, 12, 12, 0.9);
    padding: 40px 42px;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: white;
    margin-bottom: 1rem;
    outline: none;
}

.login-input:focus {
    background: #3a3a3a;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-btn-giant {
    width: 100%;
    padding: 16px;
    background: var(--brand-red);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.login-btn-giant:hover {
    background: var(--brand-red-hover);
}


/* --- IMMERSIVE PLAYER (Practice.html) --- */
.cinematic-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    flex-direction: column;
}

/* Video Bg placeholder */
.player-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    /* Darken for text */
    z-index: 1;
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, #000 0%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Subtitles at bottom */
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
    /* Space for footer controls */
}

.player-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: #e2e8f0;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.player-context {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.player-context .divider {
    opacity: 0.6;
}

.usage-timer {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.45);
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.usage-timer.timer-normal {
    color: #e2e8f0;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.12);
}

.usage-timer.timer-warning {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
    background: rgba(250, 204, 21, 0.12);
}

.usage-timer.timer-critical {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.12);
    animation: timerPulse 1.2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.player-objective {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 86%;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.75rem;
    text-align: center;
    z-index: 3;
}

.subtitle-toggle-btn {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subtitle-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Subtitles Chat Style */
.subtitle-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0 2rem;
    min-height: 44vh;
    max-height: calc(100vh - (var(--footer-height) + 110px));
    overflow: hidden;
}

.subtitle-container.history-expanded {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.6rem;
}

.conversation-history-controls {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 0.35rem;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
}

.history-toggle-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-toggle-btn.has-history:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
}

.history-toggle-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.subtitle-group {
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.78rem 0.95rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}

.subtitle-group.history-hidden {
    display: none !important;
}

.subtitle-container.subtitles-on {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

/* Lesson mode - allows scrolling through lesson options */
.subtitle-container.lesson-mode {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

.subtitle-line {
    color: white;
    font-size: 1.8rem;
    /* Big like subtitles */
    font-weight: 600;
    text-shadow: 2px 2px 4px black;
    animation: fadeSlideUp 0.5s ease;
    line-height: 1.35;
    margin: 0;
    white-space: pre-wrap;
}

.subtitle-line.ai {
    color: #fff;
    background: var(--ai-en-bg);
    border: 1px solid var(--ai-en-border);
    border-radius: 12px;
    padding: 0.42rem 0.56rem;
}

.subtitle-line.ai.subtitle-structured {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.subtitle-line.ai .subtitle-segment {
    margin: 0;
    padding: 0.3rem 0.42rem;
    border-radius: 10px;
    border: 1px solid transparent;
    line-height: 1.35;
}

.subtitle-line.ai .subtitle-segment.tip {
    color: #f8fafc;
    background: transparent;
    border-color: transparent;
}

.subtitle-line.ai .subtitle-segment.correction {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.42);
    border-color: rgba(248, 113, 113, 0.56);
}

.subtitle-line.ai .subtitle-segment.question {
    color: #bae6fd;
    background: rgba(3, 105, 161, 0.26);
    border-color: rgba(56, 189, 248, 0.42);
}

.subtitle-line.user {
    color: #ffd700;
    /* Yellow for user like classic subs */
    font-style: italic;
    font-size: 1.5rem;
    opacity: 0.9;
}

.subtitle-line.user.user-structured {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(120, 53, 15, 0.28);
    text-shadow: none;
    font-style: normal;
    opacity: 1;
}

.user-speech-label {
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.user-speech-text {
    color: #fef08a;
    font-size: 1.34rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
}

.subtitle-line.subtitle-obfuscated {
    position: relative;
    min-height: 2.1rem;
}

.subtitle-line.subtitle-obfuscated>* {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.subtitle-line.subtitle-obfuscated::after {
    content: '(... ...)';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(226, 232, 240, 0.88);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Player Controls Bar */
.player-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    padding-bottom: 20px;
    opacity: 0;
    /* Hide by default, show on hover */
    transition: opacity 0.3s;
}

.player-controls.footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 4px 14px calc(6px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.55) 60%, transparent 100%);
    opacity: 1;
    z-index: 140;
}

.player-controls.footer-bar .utility-row {
    display: none;
}

.player-controls.footer-bar .input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    position: relative;
}

.text-input-container {
    display: none !important;
}

.text-input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    color: white;
    font-size: 1rem;
}

.send-btn {
    margin: 0;
    padding: 0.7rem 1.2rem;
    white-space: nowrap;
}

.player-controls.footer-bar .control-btn.mic-btn {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    position: relative;
    overflow: visible;
}

.player-controls.footer-bar .control-btn.mic-btn.mic-turn-highlight {
    animation: micTurnPulse 1.1s ease-in-out infinite;
}

.player-controls.footer-bar .control-btn.mic-btn.mic-turn-highlight::before {
    content: '\279C';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffd400;
    font-size: 1.45rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    animation: micArrowBlink 0.7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes micArrowBlink {
    0% { opacity: 0.2; transform: translateY(-50%) translateX(-4px); }
    50% { opacity: 1; transform: translateY(-50%) translateX(0); }
    100% { opacity: 0.2; transform: translateY(-50%) translateX(-4px); }
}

@keyframes micTurnPulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.45); }
    70% { box-shadow: 0 0 0 12px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.player-controls.footer-bar .report-bar {
    position: static;
    padding: 0;
    background: none;
}

.player-controls.footer-bar .report-bar button {
    width: 100%;
    padding: 10px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.player-controls.footer-bar .report-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.6);
}

.player-controls.footer-bar .report-bar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.suggestions-toggle-btn {
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid #ffd400;
    color: #ffd400;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.suggestions-toggle-btn:hover {
    transform: translateY(-1px);
    background: #ffd400;
    color: #111;
}

.suggestions-panel {
    position: absolute;
    bottom: calc(var(--footer-height) + 40px);
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 92vw);
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    z-index: 130;
    display: none;
    backdrop-filter: blur(6px);
}

.suggestions-panel.active {
    display: block;
    animation: fadeSlideUp 0.35s ease;
}

/* --- FREE CONVERSATION QUESTION PICKER --- */
.free-question-panel {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 760px);
    z-index: 140;
}

.free-question-card {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 16px 18px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.free-session-mode {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 0.45rem 0;
}

.free-session-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.free-session-chip:hover,
.free-session-chip.selected {
    background: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
    color: #fff;
}

.free-mission-preview {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.45rem;
}

.topic-chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.topic-chip:hover, .topic-chip.selected {
    background: rgba(229, 9, 20, 0.18);
    border-color: #e50914;
    color: #fff;
}

.free-question-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
}

.free-question-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.free-question-refresh {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #ffeb3b;
    font-size: 1.2rem;
    cursor: pointer;
}

.free-question-ok {
    border: none;
    background: #111;
    color: #ffeb3b;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.free-question-refresh:hover,
.free-question-ok:hover {
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .free-question-panel {
        top: 92px;
    }
    .free-question-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .free-question-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.suggestions-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.suggestion-en {
    color: #ffd400;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(255, 212, 0, 0.35);
}

.suggestion-pt {
    color: #fff3b0;
    font-size: 0.9rem;
    opacity: 0.95;
    margin-top: 0.35rem;
}

.suggested-words-card {
    margin-top: 0.55rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.suggested-words-toggle {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.34rem 0.55rem;
    cursor: pointer;
}

.suggested-words-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.suggested-words-card.expanded .suggested-words-toggle {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.suggested-words-details {
    margin-top: 0.45rem;
}

.suggested-words-title {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.suggested-words-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.suggested-words-hint {
    margin-top: 0.45rem;
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.35;
}

.suggested-answers-list {
    display: grid;
    gap: 0.45rem;
}

.suggested-answer-btn {
    width: 100%;
    text-align: left;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #e2e8f0;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.suggested-answer-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(14, 116, 144, 0.28);
}

.suggested-answer-en {
    display: block;
    color: #f8fafc;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.35;
}

.suggested-answer-pt {
    display: block;
    margin-top: 0.2rem;
    color: #cbd5e1;
    font-size: 0.74rem;
    line-height: 1.35;
}

.simulator-feedback {
    margin: 0.4rem 0.5rem;
    padding: 0.35rem 0.7rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    color: #7dd3fc;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4;
}

.correction-hint {
    margin-top: 0.6rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.correction-label {
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fca5a5;
}

.correction-phrase {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.correction-use-btn {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.correction-use-btn:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, 0.45);
}

.turn-correction-card {
    margin-top: 0.65rem;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 0.62rem 0.8rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.turn-correction-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
}

.turn-correction-line {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.turn-correction-line span {
    font-weight: 700;
}

.turn-correction-line.bad {
    color: #fecaca;
}

.turn-correction-line.good {
    color: #bbf7d0;
}

.turn-correction-note {
    margin-top: 0.3rem;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    color: #cbd5e1;
    opacity: 0.95;
}

.turn-style-card {
    margin-top: 0.65rem;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    padding: 0.62rem 0.8rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.turn-style-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bae6fd;
    margin-bottom: 0.45rem;
}

.turn-style-line {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    color: #e2e8f0;
}

.turn-style-line span {
    font-weight: 700;
    color: #7dd3fc;
}

.turn-style-line.good {
    color: #bbf7d0;
}

.turn-style-note {
    margin-top: 0.3rem;
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
    color: #dbeafe;
    opacity: 0.95;
}

.learning-feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.learning-feedback-modal {
    width: min(640px, 95vw);
    border-radius: 16px;
    padding: 18px 16px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.learning-guidance-modal {
    max-height: min(78vh, 700px);
    overflow: auto;
}

.learning-feedback-modal.error {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
}

.learning-feedback-modal.style {
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.98), rgba(8, 47, 73, 0.94));
}

.learning-feedback-modal.ok {
    background: linear-gradient(180deg, rgba(20, 83, 45, 0.98), rgba(20, 83, 45, 0.92));
}

.learning-feedback-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #f8fafc;
    margin-bottom: 0.72rem;
    text-align: left;
}

.learning-guidance-step {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.learning-guidance-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.learning-guidance-status {
    font-size: 0.86rem;
    font-weight: 800;
    color: #f8fafc;
}

.learning-feedback-line {
    font-size: 1rem;
    line-height: 1.4;
    color: #f8fafc;
    margin-bottom: 0.58rem;
}

.learning-feedback-line span {
    font-weight: 800;
}

.learning-feedback-line.suggestion {
    color: #dcfce7;
}

.learning-guidance-options-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.1rem;
}

.learning-guidance-options {
    display: grid;
    gap: 0.44rem;
}

.learning-guidance-option {
    width: 100%;
    text-align: left;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #e2e8f0;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.learning-guidance-option:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.52);
    background: rgba(14, 116, 144, 0.26);
}

.learning-feedback-reason {
    margin-top: 0.3rem;
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.learning-feedback-helper {
    margin-top: 0.5rem;
    color: #cbd5e1;
    font-size: 0.78rem;
    line-height: 1.35;
}

.learning-feedback-actions {
    margin-top: 0.8rem;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.learning-feedback-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.05rem;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.learning-feedback-btn.primary {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    color: #fff;
}

.learning-feedback-btn.secondary {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
}

.learning-feedback-btn:hover {
    transform: translateY(-1px);
}

.suggested-word-btn {
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f8fafc;
    border-radius: 10px;
    padding: 0.28rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.suggested-word-btn:hover {
    transform: translateY(-1px);
    background: rgba(148, 163, 184, 0.28);
    border-color: rgba(203, 213, 225, 0.4);
}

.suggested-word-btn.picked {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(74, 222, 128, 0.5);
}

/* Barra preta removida - agora usamos apenas a barra vermelha fixa */

.cinematic-player:hover .player-controls {
    opacity: 1;
}

.control-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    background: white;
    color: black;
    border-color: white;
    transform: scale(1.1);
}

.control-btn.mic-btn {
    width: 58px;
    height: 58px;
    border-color: var(--brand-red);
    background: rgba(229, 9, 20, 0.2);
}

.control-btn.mic-btn.listening {
    background: var(--brand-red);
    box-shadow: 0 0 20px var(--brand-red);
    animation: pulse 1.5s infinite;
}

.control-btn.mic-btn.recording {
    background: rgba(229, 9, 20, 0.45);
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.65);
}

.mic-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.control-label {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.8;
}

.skip-audio-btn {
    position: absolute;
    bottom: calc(var(--footer-height) + 10px);
    right: 32px;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(125, 211, 252, 0.42);
    background: rgba(15, 23, 42, 0.8);
    color: #e0f2fe;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 120;
    backdrop-filter: blur(2px);
}

.skip-audio-btn:hover {
    transform: translateY(-1px);
    background: rgba(3, 105, 161, 0.45);
}

#status-indicator.status-indicator {
    color: rgba(226, 232, 240, 0.9);
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 0.28rem 0.72rem;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    backdrop-filter: blur(2px);
}

#status-indicator.status-indicator.listening {
    color: #fef3c7;
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.36);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
    animation: statusPulse 1.1s ease-in-out infinite;
}

@keyframes statusPulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.15);
    }

    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 10px rgba(248, 113, 113, 0.28);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(248, 113, 113, 0.15);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- RESPONSIVE TABLET/MOBILE --- */
@media (max-width: 768px) {
    :root {
        --footer-height: 106px;
    }

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

    .hero-content {
        width: 90%;
        margin-bottom: 2rem;
    }

    .poster-card {
        width: 154px;
        height: auto;
        min-height: 180px;
        /* Ensure enough space for image + info */
    }

    .poster-image-wrapper {
        height: 86px;
        /* Scaled down for mobile */
    }

    .poster-card:hover {
        transform: scale(1.05);
    }

    /* Smaller zoom on touch */
    .row-slider {
        padding-bottom: 1rem;
    }

    .profile-gate-label {
        font-size: 2rem;
    }

    .profile-avatar {
        width: 120px;
        height: 120px;
    }

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

    .player-controls {
        opacity: 1;
    }

    /* Always show controls on mobile */
}

@media (max-width: 420px) {
    .player-controls.footer-bar .input-row {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .player-controls.footer-bar .control-btn.mic-btn {
        width: 56px;
        height: 56px;
    }
}

/* --- LEARNING MODE (Topics Grid) --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0 20px;
}

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

.btn-back {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--surface-hover);
    border-color: var(--brand-red);
}

.user-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
}

.avatar {
    background: var(--surface-hover);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.username {
    font-weight: 600;
}

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

.scenario-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 210px;
}

.scenario-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-red);
}

.scenario-icon {
    font-size: 28px;
}

.scenario-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
}

.scenario-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: flex-start;
}

.level-tag {
    background: rgba(229, 9, 20, 0.12);
    color: var(--brand-red);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.loading-state {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 32px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .main-header {
        align-items: flex-start;
    }

    .scenario-card {
        min-height: 180px;
    }
}

/* --- DASHBOARD & GLOBAL CTA CARDS --- */
.dashboard-body {
    background: radial-gradient(circle at 10% 20%, rgba(229, 9, 20, 0.12), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(109, 109, 110, 0.16), transparent 35%),
        #0f0f0f;
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.dashboard-header {
    margin-bottom: 28px;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

.dashboard-header p {
    color: var(--text-secondary);
    margin-top: 6px;
}

.lang-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 6px;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: rgba(229, 9, 20, 0.15);
    color: #fff;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mode-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(24, 24, 24, 0.9), rgba(24, 24, 24, 0.6));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mode-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(229, 9, 20, 0.15), transparent 45%);
    opacity: 0.8;
    pointer-events: none;
}

.mode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.mode-card .icon-svg {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    stroke: #fff;
    stroke-width: 1.4;
    z-index: 1;
}

.mode-card .card-content {
    z-index: 1;
}

.mode-card h2 {
    margin: 0;
    font-size: 1.4rem;
}

.mode-card p {
    margin: 8px 0 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #fff, #dcdcdc);
    color: #0f0f0f;
}

.btn-secondary {
    background: rgba(229, 9, 20, 0.18);
    color: #fff;
    border-color: rgba(229, 9, 20, 0.4);
}

.dashboard-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.btn-logout,
.action-btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
}

.btn-logout:hover,
.action-btn:hover {
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-1px);
}

.learning-card .level-tag {
    background: rgba(70, 211, 105, 0.14);
    color: #46d369;
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 768px) {
    .login-body {
        padding-top: 80px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .profile-gate-label {
        font-size: 2.6rem;
    }

    .mode-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 80px 16px 40px;
    }
}

/* --- VOICE SELECTOR --- */
.voice-selector-container {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    justify-content: center;
}

.voice-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    width: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.voice-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.voice-option.selected {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.4));
    border-color: #E50914;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.voice-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid transparent;
}

.voice-option.selected .voice-avatar {
    border-color: #fff;
    background: #E50914;
}

.voice-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.voice-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    line-height: 1.2;
}

.voice-label {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Voice selector - Mobile responsive */
@media (max-width: 600px) {
    .voice-selector-container {
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 15px;
    }
    .voice-option {
        width: 70px;
        padding: 8px;
        gap: 4px;
    }
    .voice-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .voice-name {
        font-size: 0.7rem;
    }
    .voice-desc {
        font-size: 0.6rem;
        display: none; /* Hide description on mobile */
    }
    .voice-label {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .voice-option {
        width: 60px;
        padding: 6px;
    }
    .voice-avatar {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    .voice-name {
        font-size: 0.65rem;
    }
}

/* Avatar Styling */
.avatar-container {
    position: absolute;
    bottom: -20px;
    right: 5%;
    width: 350px;
    max-width: 40vw;
    z-index: 20;
    pointer-events: none;
    transition: all 0.5s ease;
}

.avatar-wrapper {
    position: relative;
    width: 100%;
    transform-origin: bottom center;
}

.avatar-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    /* Fade out at the bottom to blend with UI */
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Talking Animation - simulated lip sync */
.avatar-wrapper.talking .avatar-img {
    animation: talkPulse 0.15s infinite alternate ease-in-out;
}

@keyframes talkPulse {
    0% {
        transform: scale(1) translateY(0);
    }

    100% {
        transform: scale(1.015) translateY(-2px);
    }
}

/* FORCE HIDE SUBTILES BY DEFAULT */
.translation-line {
    display: none !important;
}

.subtitle-group .translation-line {
    margin-top: 0.6rem;
    padding: 0.44rem 0.6rem;
    border: 1px solid var(--ai-pt-border);
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.06);
    line-height: 1.45;
    font-style: normal;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.subtitle-group .translation-line.translation-structured {
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
}

.subtitle-group .translation-line .translation-segment {
    margin: 0;
    padding: 0.3rem 0.44rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.subtitle-group .translation-line .translation-segment.tip {
    color: #e2e8f0;
    background: transparent;
    border-color: transparent;
}

.subtitle-group .translation-line .translation-segment.correction {
    color: #fee2e2;
    background: rgba(127, 29, 29, 0.33);
    border-color: rgba(248, 113, 113, 0.44);
}

.subtitle-group .translation-line .translation-segment.question {
    color: #dbeafe;
    background: rgba(30, 64, 175, 0.28);
    border-color: rgba(96, 165, 250, 0.42);
}

/* Restore display when explicitly enabled via JS inline style */
.translation-line[style*='display: block'] {
    display: block !important;
}

.translation-line.translation-structured[style*='display: block'] {
    display: flex !important;
}

/* AVATAR MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .avatar-container {
        width: 140px;
        right: 10px;
        bottom: 80px;
        /* Move up to avoid covering controls */
    }
}

@media (max-width: 480px) {
    .avatar-container {
        width: 120px;
        right: 5px;
        bottom: 70px;
    }
}

/* =====================================================
   ESTILOS PARA CORREÇÕES DETALHADAS NO RELATÓRIO
   ===================================================== */

.corrections-block {
    margin-top: 1rem;
}

.corrections-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.corrections-list .correction-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.corrections-list .correction-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.correction-line {
    padding: 6px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.correction-line.bad {
    color: #fca5a5;
}

.correction-line.good {
    color: #86efac;
    font-weight: 600;
}

.avaliacao-badge {
    margin-bottom: 8px;
}

.error-tag {
    vertical-align: middle;
}

.comentario-breve {
    font-style: italic;
}

@media (max-width: 768px) {
    .suggestions-panel {
        bottom: calc(var(--footer-height) + 40px);
        padding: 0.9rem;
    }

    .suggestions-list {
        grid-template-columns: 1fr;
    }


    .suggestions-toggle-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* =============================================
   STRUCTURED LESSON STYLES
   ============================================= */

.lesson-options-container {
    background: rgba(30, 30, 40, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lesson-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: #9aa4b2;
}

.lesson-options-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.lesson-option-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin: 10px 0;
    transition: all 0.2s ease;
}

.lesson-option-card:not(.lesson-option-readonly):hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateX(4px);
    cursor: pointer;
}

.lesson-option-readonly {
    cursor: default;
}

.lesson-mic-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 14px;
    padding: 8px 0;
}

.option-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.option-content {
    flex: 1;
}

.option-en {
    font-size: 1.05rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

.option-pt {
    font-size: 0.9rem;
    color: #9aa4b2;
    margin-top: 4px;
}

/* Audio Button for Lesson Options */
.option-audio-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
}

.option-audio-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

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

.option-audio-btn.playing {
    background: rgba(99, 102, 241, 0.4);
    animation: audioButtonPulse 0.6s infinite alternate;
}

.option-audio-btn .audio-icon {
    font-size: 1.2rem;
}

@keyframes audioButtonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
}

/* Lesson Phrase Reference Card (sticky during practice) */
.lesson-phrase-reference {
    z-index: 10;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.10));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 16px;
    backdrop-filter: blur(10px);
}

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

.ref-label {
    font-size: 0.8rem;
    color: #9aa4b2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ref-audio-btn {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #fff;
}

.ref-audio-btn:hover {
    background: rgba(99, 102, 241, 0.4);
    transform: scale(1.1);
}

.ref-audio-btn.playing {
    background: rgba(99, 102, 241, 0.5);
    animation: audioButtonPulse 0.6s infinite alternate;
}

.ref-phrase-en {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-top: 8px;
    line-height: 1.4;
}

.ref-phrase-pt {
    font-size: 0.9rem;
    color: #a5b4c8;
    margin-top: 4px;
    font-style: italic;
}

/* Lesson Start Button */
.lesson-start-container {
    text-align: center;
    margin: 20px 0;
}

.lesson-start-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.lesson-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

/* Mobile adjustments for lesson cards */
@media (max-width: 600px) {
    .lesson-options-container {
        padding: 16px;
        margin: 12px 0;
    }

    .lesson-option-card {
        padding: 14px;
    }

    .option-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.9rem;
        margin-right: 12px;
    }

    .option-en {
        font-size: 0.95rem;
    }

    .option-pt {
        font-size: 0.85rem;
    }

    .option-audio-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        margin-left: 8px;
    }

    .option-audio-btn .audio-icon {
        font-size: 1rem;
    }
}

/* =========================================
   Usage Limit Modal
   ========================================= */

.usage-exceeded-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: usageModalFadeIn 0.3s ease;
}

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

.usage-exceeded-modal {
    width: 100%;
    max-width: 420px;
    background: rgba(20, 20, 20, 0.96);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: usageModalSlideUp 0.35s ease;
}

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

.usage-exceeded-modal .modal-icon {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.usage-exceeded-modal h2 {
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.usage-exceeded-modal p {
    margin: 0.4rem 0;
    color: #cbd5f5;
    line-height: 1.5;
}

.usage-exceeded-modal .time-info {
    margin: 0.8rem 0 0.5rem;
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.92rem;
}

.usage-exceeded-modal .close-btn {
    margin-top: 0.9rem;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: #e50914;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.usage-exceeded-modal .close-btn:hover {
    background: #b0070f;
    transform: translateY(-1px);
}

/* =========================================
   Report Modal (Cinematic Style)
   ========================================= */

.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: reportModalFadeIn 0.3s ease;
}

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

.report-modal-content {
    background: rgba(20, 20, 20, 0.97);
    border: 1px solid #333;
    border-radius: 16px;
    color: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: reportModalSlideUp 0.35s ease;
}

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

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.report-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.report-modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.report-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.report-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.report-modal-body::-webkit-scrollbar {
    width: 6px;
}

.report-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.report-modal-body::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

/* Score display in modal */
.report-modal-body .report-score-display {
    text-align: center;
    padding: 16px 0 20px;
}

.report-modal-body .report-score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.report-modal-body .report-score-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin: 12px 0 6px;
    overflow: hidden;
}

.report-modal-body .report-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.report-modal-body .report-score-label {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

/* Elogios & Dicas blocks */
.report-modal-body .report-block {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.report-modal-body .report-block h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.report-modal-body .report-block ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.report-modal-body .report-block li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 4px;
}

.report-modal-body .report-block-elogios {
    border-left: 3px solid #4CAF50;
}

.report-modal-body .report-block-dicas {
    border-left: 3px solid #FFC107;
}

/* Practice phrase section */
.report-modal-body .report-practice-section {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(103, 58, 183, 0.15));
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.report-modal-body .report-practice-section h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #CE93D8;
}

.report-modal-body .report-practice-phrase {
    font-size: 1rem;
    font-style: italic;
    color: #E1BEE7;
    line-height: 1.5;
}

/* Action buttons */
.report-modal-body .report-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.report-modal-body .report-actions button {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-modal-body .report-actions button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.report-modal-body .report-btn-pdf {
    background: linear-gradient(135deg, #E50914, #B20710);
    color: #fff;
    box-shadow: 0 2px 12px rgba(229, 9, 20, 0.3);
}

.report-modal-body .report-btn-json {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid #444 !important;
}

.report-modal-body .report-btn-json:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 480px) {
    .report-modal {
        padding: 8px;
    }

    .report-modal-content {
        max-height: 90vh;
        border-radius: 12px;
    }

    .report-modal-body .report-score-number {
        font-size: 2.8rem;
    }

    .report-modal-body .report-actions {
        flex-direction: column;
    }
}

/* =========================================
   MOBILE-SPECIFIC FIXES
   ========================================= */

/* Safe area for notched devices (iPhone X+) */
.player-top-bar {
    padding-top: max(16px, env(safe-area-inset-top));
}

/* Touch devices: prevent sticky hover states */
@media (hover: none) and (pointer: coarse) {
    .poster-card:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
    .poster-card:active {
        transform: scale(1.03);
    }
    .featured-card:hover {
        transform: none;
    }
    .featured-card:active {
        transform: scale(0.98);
    }

    /* Increase touch target sizes for difficulty pills and topic chips */
    .difficulty-pill {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    .topic-chip {
        min-height: 44px;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.78rem !important;
    }
    .free-session-chip {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
    .pmode-card {
        min-height: 80px;
    }

    /* Fix virtual keyboard pushing content out of view */
    .cinematic-player {
        position: absolute;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* Allow scrolling on practice page body */
    body.audio-only-mode {
        overflow: auto !important;
        overflow-x: hidden !important;
    }

    /* Subtitle container must be scrollable on mobile */
    .subtitle-container {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
