/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    margin-top: 30px;
    margin-bottom: 5px;
    color: #6446ff;
}

header p {
    font-size: 1.1rem;
    color: #666;
}

/* Search container styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

#search-form {
    display: flex;
}

#youtube-url {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}

#youtube-url:focus {
    border-color: #6446ff;
}

#search-form button {
    padding: 12px 25px;
    background-color: #6446ff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-form button:hover {
    background-color: #6446ff;
}

/* Instructions styles */
.instructions {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.instructions h2 {
    margin-bottom: 15px;
    color: #333;
}

.instructions p {
    margin-bottom: 10px;
}

.instructions span {
    background-color: #adff2f; /* bright green-yellow */
    padding: 0 4px;
    border-radius: 3px;
    font-weight: bold;
    color: #000;
}

/* Auto-redirect section styles */
.auto-redirect {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 20px;
    background-color: #333;
    color: #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.auto-redirect h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.auto-redirect ul {
    margin: 15px 0;
    padding-left: 20px;
}

.auto-redirect li {
    margin-bottom: 8px;
}

.auto-redirect a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
}

.auto-redirect a:hover {
    text-decoration: underline;
}

/* Watch page styles */
.watch-page .container {
    max-width: 1400px;
}

.minimal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    text-align: left;
}

.minimal-header h1 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.back-link {
    margin-right: 20px;
    color: #6446ff;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

#video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
    border-radius: 4px;
}

#video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#video-info {
    margin-top: 20px;
}

#video-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    #search-form {
        flex-direction: column;
    }
    
    #youtube-url {
        border-radius: 4px 4px 0 0;
    }
    
    #search-form button {
        border-radius: 0 0 4px 4px;
    }
}
