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

:root {
    --primary-color: #e62117;
    --secondary-color: #4CAF50;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --gray-color: #ddd;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background-color: white;
    border-radius: 10px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-color);
    position: relative;
}

/* Logo Styling */
.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-size: 3rem;
    position: relative;
}

.logo-icon {
    color: var(--secondary-color);
    margin-right: -5px;
    transform: rotate(45deg);
    position: relative;
    z-index: 1;
    animation: spin 10s linear infinite;
}

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

.logo-youtube {
    color: var(--primary-color);
    font-size: 3.5rem;
    position: relative;
    z-index: 0;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

/* Features Section */
.features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

.input-section {
    display: flex;
    margin-bottom: 30px;
    gap: 10px;
}

#video-url {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--gray-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#video-url:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 33, 23, 0.1);
}

#play-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

#play-button:hover {
    background-color: #c41c10;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#play-button:active {
    transform: translateY(0);
}

.player-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-bottom: 30px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

/* Description Section */
.description {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.description h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--gray-color);
    padding-bottom: 8px;
}

.description p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.features-list h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.4rem;
}

.features-list ul {
    list-style: none;
}

.features-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    color: #555;
}

.features-list li i {
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 4px;
}

/* Instructions Section */
.instructions {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.instructions h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.6rem;
}

.instructions ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.instructions li {
    margin-bottom: 10px;
    color: #555;
}

.tip {
    background-color: rgba(76, 175, 80, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    color: #4CAF50;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Styles for the error container and direct link */
.error-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.error-message {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 80%;
    line-height: 1.5;
}

.direct-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.direct-link-container p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ddd;
}

.direct-link-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.direct-link-button:hover {
    background-color: #c41c10;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.direct-link-button:active {
    transform: translateY(0);
}

/* Refresh Button Styling */
.refresh-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
}

.refresh-button:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.refresh-button:active {
    transform: translateY(0);
}

.refresh-button i {
    font-size: 18px;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
    color: #777;
    font-size: 14px;
    border-top: 1px solid var(--gray-color);
}

@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    /* Logo for mobile devices */
    .logo {
        font-size: 2.5rem;
    }
    
    .logo-youtube {
        font-size: 3rem;
    }
    
    header h1 {
        font-size: 2rem;
    }

    /* Features responsive */
    .features {
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
} 