* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Verdana, Arial, sans-serif;
    background: #f3f5f8;
    color: #222;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 76px;
    background: rgb(0, 32, 96);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-box {
    width: 52px;
    height: 52px;

    background: rgb(0, 32, 96);

    border-radius: 12px;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 2px 8px rgba(0,0,0,.18);

    flex-shrink: 0;
}

.logo {

    width: 48px;
    height: 48px;

    object-fit: contain;
}

.brand-title {
    font-size: 20px;
    font-weight: bold;
}

.brand-subtitle {
    font-size: 12px;
    opacity: 0.82;
    margin-top: 3px;
}

.version {
    font-size: 13px;
    opacity: 0.9;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 34px 22px;
}

.video-card {
    width: 100%;
    max-width: 980px;
    background: white;
    border: 1px solid #d8dde6;
    border-radius: 15px;
    padding: 26px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-header {
    margin-bottom: 20px;
}

.video-header h1 {
    margin: 0 0 8px 0;
    color: rgb(0, 32, 96);
    font-size: 24px;
}

.video-header p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.player-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #c7c7c7;
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    color: #666;
    font-size: 12px;
}

.loading {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    color: rgb(0, 32, 96);
    font-size: 14px;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dce3f0;
    border-top: 4px solid rgb(0, 32, 96);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.error-box {
    padding: 20px;
    border-radius: 10px;
    background: #fff3f3;
    border: 1px solid #e0a8a8;
    color: #8a0000;
    font-size: 14px;
}

.footer {
    text-align: center;
    padding: 16px;
    color: #777;
    font-size: 12px;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {
    .topbar {
        height: auto;
        padding: 18px;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .content {
        padding: 18px 12px;
    }

    .video-card {
        padding: 16px;
        border-radius: 12px;
    }

    .video-header h1 {
        font-size: 20px;
    }

    .video-info {
        flex-direction: column;
    }
}
