:root {
    --bg-color: #eef4ee;
    --text-color: #000100;
    --header-bg: #c8dfc8;
    --border-color: #b8ceb8;
    --link-color: #008421;
}

[data-theme='dark'] {
    --bg-color: #09080d;
    --text-color: #bdb9dc;
    --header-bg: #1a172c;
    --border-color: #2c293d;
    --link-color: #8169dc;
}

body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.back-link {
    text-decoration: none;
    color: var(--link-color);
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 36px;
    height: 36px;
}

.title {
    font-weight: bold;
    font-size: 1.2rem;
    white-space: nowrap;
}
@media (max-width: 1119px) {
    .title {
        display: none;
    }
}

.theme-toggle {
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.video-wrapper {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}
