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

:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --secondary-blue: #1e3a8a;
    --accent-blue: #60a5fa;
    --light-blue: #dbeafe;
    --dark-blue: #1e293b;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-gray-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.15);
    --shadow-blue-lg: 0 8px 30px rgba(37, 99, 235, 0.2);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #2563eb 30%, #3b82f6 60%, #60a5fa 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: 
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 15%, #2563eb 35%, #3b82f6 55%, #60a5fa 75%, #93c5fd 95%, #dbeafe 100%),
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    background-size: 400% 400%, 100% 100%, 100% 100%;
    animation: gradientShift 25s ease infinite;
    min-height: 100vh;
    padding: 32px 24px;
    color: var(--text-dark);
    line-height: 1.75;
    position: relative;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.995) 100%);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 40px;
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.7),
        inset 0 2px 4px rgba(255, 255, 255, 0.98),
        inset 0 -2px 0 rgba(0, 0, 0, 0.03),
        0 0 0 0 rgba(37, 99, 235, 0);
    padding: 64px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: box-shadow 0.3s ease;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.05), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.container:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .container {
        padding: 32px 24px;
        border-radius: 24px;
    }
}

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

header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-light);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

header h1 {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 25%, #3b82f6 50%, #60a5fa 75%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
    position: relative;
    display: inline-block;
    line-height: 1.05;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
    }
    100% {
        filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.3));
    }
}

header p {
    color: var(--text-gray);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.9;
}

.input-section {
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

#youtube-url {
    flex: 1;
    min-width: 300px;
    padding: 20px 28px;
    border: 2.5px solid var(--border-color);
    border-radius: 18px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    color: var(--text-dark);
    font-family: inherit;
    font-weight: 400;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

#youtube-url:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 5px rgba(37, 99, 235, 0.12),
        0 6px 20px rgba(37, 99, 235, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

#youtube-url::placeholder {
    color: var(--text-gray);
}

.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 16px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.015em;
    text-transform: none;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    box-shadow: 
        0 6px 20px rgba(37, 99, 235, 0.35),
        0 2px 8px rgba(37, 99, 235, 0.25),
        0 0 0 1px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(37, 99, 235, 0.45),
        0 4px 12px rgba(37, 99, 235, 0.3),
        0 0 0 1px rgba(37, 99, 235, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 40px rgba(37, 99, 235, 0.2);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 50%, var(--primary-blue-light) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    box-shadow: 
        0 4px 14px rgba(30, 58, 138, 0.4),
        0 0 0 1px rgba(30, 58, 138, 0.1);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(30, 58, 138, 0.5),
        0 0 0 1px rgba(30, 58, 138, 0.2);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.btn-secondary:active {
    transform: translateY(0);
}

.analysis-buttons {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2.5px solid var(--border-light);
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.3) 100%);
    border-radius: 0 0 24px 24px;
    margin-left: -64px;
    margin-right: -64px;
    padding-left: 64px;
    padding-right: 64px;
    padding-bottom: 8px;
}

.analysis-buttons::before {
    content: '';
    position: absolute;
    top: -2.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.analysis-buttons h3 {
    color: var(--primary-blue);
    margin: 0 0 32px 0;
    font-size: 0.875rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 16px;
    text-transform: uppercase;
}

.analysis-buttons h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
    border-radius: 2px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
}

.btn-analysis {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    box-shadow: 
        0 6px 18px rgba(79, 70, 229, 0.28),
        0 2px 6px rgba(79, 70, 229, 0.2),
        0 0 0 1px rgba(79, 70, 229, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 16px 28px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-analysis:hover::before {
    left: 100%;
}

.btn-analysis:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 12px 28px rgba(79, 70, 229, 0.4),
        0 4px 10px rgba(79, 70, 229, 0.3),
        0 0 0 1px rgba(79, 70, 229, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 35px rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
}

.btn-analysis:active {
    transform: translateY(0);
}

.btn-highlight {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
    font-weight: 700;
    box-shadow: 
        0 4px 14px rgba(245, 158, 11, 0.4),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 4px 14px rgba(245, 158, 11, 0.4),
            0 0 0 1px rgba(245, 158, 11, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(245, 158, 11, 0.6),
            0 0 0 1px rgba(245, 158, 11, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 30px rgba(245, 158, 11, 0.3);
    }
}

.btn-highlight:hover {
    background: linear-gradient(135deg, #d97706 0%, #ea580c 100%) !important;
    transform: translateY(-3px) scale(1.05);
    animation: none;
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.5),
        0 0 0 1px rgba(245, 158, 11, 0.2),
        0 0 40px rgba(245, 158, 11, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-download {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    margin-top: 24px;
    box-shadow: var(--shadow-md);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.loading {
    text-align: center;
    padding: 60px 40px;
}

.spinner {
    border: 5px solid var(--light-blue);
    border-top: 5px solid var(--primary-blue);
    border-right: 5px solid var(--primary-blue-light);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
    position: relative;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--light-blue);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.6s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-gray);
    font-size: 1.125rem;
    font-weight: 500;
}

.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #fecaca;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error::before {
    content: '⚠️';
    font-size: 1.5rem;
}

.hidden {
    display: none !important;
}

.result-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.result-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

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

.result-section h2 {
    color: var(--primary-blue);
    margin-bottom: 32px;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.result-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.result-section h2 span:first-child {
    font-size: 2.75rem;
    filter: drop-shadow(0 3px 6px rgba(37, 99, 235, 0.35));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.video-info {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.85) 0%, rgba(239, 246, 255, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 28px;
    border: 2px solid rgba(96, 165, 250, 0.25);
    box-shadow: 
        0 6px 20px rgba(37, 99, 235, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.video-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light), var(--accent-blue));
}

.video-info h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.video-info p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.video-info p strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.comentarios-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 12px;
}

.comentarios-list::-webkit-scrollbar {
    width: 8px;
}

.comentarios-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.comentarios-list::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.comentarios-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

.comentario-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 16px;
    border-left: 5px solid var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.comentario-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 16px 0 0 16px;
    transition: width 0.3s;
}

.comentario-item:hover {
    transform: translateX(6px) translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-left-color: var(--primary-blue-light);
    background: rgba(255, 255, 255, 1);
}

.comentario-item:hover::before {
    width: 6px;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.comentario-autor {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1rem;
}

.comentario-likes {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comentario-texto {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
}

.transcricao-content {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 36px;
    border-radius: 20px;
    margin-bottom: 24px;
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text-dark);
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid rgba(37, 99, 235, 0.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
}

.transcricao-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 20px 0 0 20px;
}

.transcricao-content::-webkit-scrollbar {
    width: 8px;
}

.transcricao-content::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.transcricao-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.transcricao-segments {
    margin-top: 24px;
}

.segment-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 16px;
    border-left: 5px solid var(--primary-blue-light);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.segment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-blue-light), var(--accent-blue));
    border-radius: 16px 0 0 16px;
    transition: width 0.3s;
}

.segment-item:hover {
    box-shadow: 
        0 8px 20px rgba(96, 165, 250, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateX(4px) translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.segment-item:hover::before {
    width: 6px;
}

.segment-time {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.segment-text {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 24px;
        border-radius: 16px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    #youtube-url {
        min-width: 100%;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .result-section h2 {
        font-size: 1.5rem;
    }

    .video-info {
        padding: 20px;
    }

    .transcricao-content {
        padding: 24px;
        font-size: 1rem;
    }
}

/* Animações adicionais */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading p {
    animation: pulse 2s ease-in-out infinite;
}

/* Estilos para seções de análise */
.analysis-block {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 2.5px solid rgba(37, 99, 235, 0.1);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 2px 4px rgba(255, 255, 255, 0.98),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.analysis-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-light));
    opacity: 0;
    transition: opacity 0.3s;
}

.analysis-block:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 16px 48px rgba(37, 99, 235, 0.12),
        0 4px 16px rgba(37, 99, 235, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.98),
        inset 0 -2px 0 rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.analysis-block:hover::before {
    opacity: 1;
}

.analysis-block h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.025em;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-block ul {
    list-style: none;
    padding: 0;
}

.analysis-block li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.2s ease;
}

.analysis-block li:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.analysis-item {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.analysis-item:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.2);
}

.analysis-item h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.analysis-item p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.analysis-item p strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.analysis-item .tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(219, 234, 254, 0.8) 100%);
    color: var(--primary-blue);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 8px;
    margin-top: 8px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.analysis-item .tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

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

.insight-card {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.7) 0%, rgba(239, 246, 255, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid rgba(96, 165, 250, 0.25);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 
        0 8px 28px rgba(37, 99, 235, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.insight-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.insight-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(96, 165, 250, 0.6);
}

.insight-card:hover::after {
    opacity: 1;
}

.insight-card h4 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.insight-card ul {
    list-style: none;
    padding: 0;
}

.insight-card li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    padding-left: 8px;
}

.insight-card li:last-child {
    border-bottom: none;
}

.insight-card li:hover {
    padding-left: 12px;
    color: var(--primary-blue);
}

.insight-card li::before {
    content: '→';
    color: var(--primary-blue);
    font-weight: 700;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.insight-card li:hover::before {
    margin-right: 16px;
    transform: scale(1.2);
}

.actions-list {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 3px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    padding: 36px;
    margin-top: 40px;
    box-shadow: 
        0 10px 32px rgba(245, 158, 11, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.actions-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.actions-list h4 {
    color: #92400e;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.actions-list ol {
    padding-left: 24px;
}

.actions-list li {
    color: #78350f;
    line-height: 1.9;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 1rem;
    padding-left: 8px;
    transition: all 0.2s ease;
}

.actions-list li:hover {
    padding-left: 12px;
    color: #92400e;
}

@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-grid {
        grid-template-columns: 1fr;
    }
}
