* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #f5f5f5;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #f44336;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

header p {
    font-size: 1.2rem;
    color: #aaa;
    font-style: italic;
}

.input-section {
    display: flex;
    margin-bottom: 25px;
}

#youtube-url {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #333;
    background-color: #1e1e1e;
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

#roast-btn {
    padding: 12px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#roast-btn:hover {
    background-color: #d32f2f;
}

.video-container {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.roast-section {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

.roast-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.fire-icon {
    animation: burn 1.5s infinite alternate;
    margin-bottom: 15px;
}

@keyframes burn {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hidden {
    display: none;
}

#roast-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

#roast-content p {
    margin-bottom: 15px;
}

.roast-point {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #f44336;
    animation: fadeIn 0.5s ease-in-out;
}

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

.timestamp-link {
    color: #f44336;
    text-decoration: underline;
    cursor: pointer;
}

.timestamp-link:hover {
    color: #ff7961;
}

.action-btn {
    padding: 12px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.action-btn:hover {
    background-color: #388e3c;
}

.action-btn:disabled {
    background-color: #777;
    cursor: not-allowed;
}

.roast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 100;
}

.roast-text {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 24px;
    text-align: center;
    max-width: 80%;
    border: 2px solid #f44336;
    text-shadow: 0 0 2px black;
    animation: pulse 2s infinite;
}

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

.video-container {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
    }
    
    #youtube-url {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    #roast-btn, .action-btn {
        border-radius: 4px;
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }
}