:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffd700; /* Gold accent for a premium feel */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.video-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative; /* For play button positioning */
}

/* Increase padding on larger screens */
@media (min-width: 768px) {
    .video-container {
        padding: 20px;
    }
}

.elementary-theme {
    background-color: #424242 !important;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.05);
}

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

.youtube-embed {
    width: 100% !important;
    height: 100% !important;
}

/* Custom Play Button Overlay */
.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.play-button-overlay:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button-overlay::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 5px;
}

.video-wrapper.is-playing .play-button-overlay {
    opacity: 0;
    pointer-events: none;
    visibility: hidden; /* Ensure it doesn't block controls */
}

/* Hide native play button on some browsers when custom overlay is shown */
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.credits-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px 80px 20px;
}

.credits-content {
    max-width: 600px;
    width: 100%;
    font-family: 'Noto Serif JP', serif;
    text-align: center;
}

.credits-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 0.1rem;
}

.credit-item {
    margin-bottom: 25px;
}

.credit-item .label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    letter-spacing: 0.1rem;
}

.credit-item p:not(.label) {
    font-size: 1.1rem;
    line-height: 1.6;
}

.staff-list {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: inline-block;
}

.staff-list h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.staff-list p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

html {
    scroll-behavior: smooth;
}

.external-links {
    font-size: 9px;
    line-height: 1.2;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.4);
}

.external-links p {
    margin-bottom: 4px;
}

.external-links a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.3s;
}

.external-links a:hover {
    color: #ffffff;
}
