/* Base Reset and Fonts */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    color: #444;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Logo */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-block {
    font-family: 'Times New Roman', Times, serif;
    font-size: 48px;
    font-weight: bold;
    color: #db4437; /* Alphabet Red-ish */
    background: transparent;
    border-bottom: 0px solid #db4437;
    position: relative;
    cursor: default;
    user-select: none;
}

/* Fun playful block style like abc.xyz blocks initially often look plain but have character */
.logo-block::after {
    content: '.';
    color: #4285f4; /* Blue dot */
}

nav a {
    text-decoration: none;
    color: #888;
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #db4437;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    font-family: 'Times New Roman', Times, serif; /* abc.xyz often uses serif for headers */
    font-size: 3.5rem;
    font-weight: normal;
    color: #222;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.highlight {
    color: #db4437;
    font-weight: bold;
}

.description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
}

/* Input Section */
.input-container {
    width: 100%;
    max-width: 700px;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.url-input-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus {
    border-color: #db4437;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: #db4437;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

button:hover {
    background-color: #c53929;
}

button:active {
    transform: scale(0.98);
}

.secondary-btn {
    background-color: #ffffff;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.secondary-btn:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.separator {
    color: #999;
    font-size: 14px;
    padding: 0 5px;
}

/* Player Section */
.player-container {
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.player-container.hidden {
    display: none;
}

video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.player-controls-hint {
    padding: 10px;
    background: #222;
    color: #aaa;
    font-size: 12px;
    text-align: left;
    font-family: monospace;
}

/* Error Messages */
.error-container {
    margin-top: 20px;
    padding: 15px 25px;
    background-color: #fce8e6;
    color: #c53929;
    border-radius: 4px;
    border: 1px solid #fad2cf;
}

.error-container.hidden {
    display: none;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .url-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-text {
        font-size: 2.5rem;
    }
    
    .separator {
        padding: 10px 0;
    }
}
