.bunny-player-page,
.bunny-player-page * {
    box-sizing: border-box;
}

.bunny-player-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.25), transparent 35%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #f8fafc;
    font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.bunny-player-page.is-embed {
    background: #000;
    overflow: hidden;
}

.bunny-player-layout {
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px;
}

.bunny-player-page.is-embed .bunny-player-layout {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.bunny-player-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
}

.bunny-player-page.is-embed .bunny-player-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.bunny-player-stage {
    position: relative;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.bunny-player-page.is-embed .bunny-player-stage {
    aspect-ratio: unset;
    min-height: 100vh;
}

.bunny-player-frame {
    width: 100%;
    height: 100%;
}

.bunny-player-stage .fluid_video_wrapper,
.bunny-player-stage .fluid_video_wrapper video,
.bunny-player-stage .fluid_video_wrapper .fluid_controls_container,
.bunny-player-stage .fluid_video_wrapper .fluid_streaming_type,
.bunny-player-stage .fluid_video_wrapper .fluid_subtitles_container {
    border-radius: inherit;
}

.bunny-player-stage .fluid_video_wrapper,
.bunny-player-stage .fluid_video_wrapper video {
    width: 100% !important;
    height: 100% !important;
}

.bunny-player-page.is-embed .bunny-player-stage .fluid_video_wrapper,
.bunny-player-page.is-embed .bunny-player-stage .fluid_video_wrapper video {
    min-height: 100vh;
}

.bunny-player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.bunny-player-error {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 12;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
    backdrop-filter: blur(12px);
}

.bunny-player-error[hidden] {
    display: none !important;
}

.bunny-player-error {
    background: rgba(127, 29, 29, 0.9);
    color: #fee2e2;
}

.bunny-player-panel {
    padding: 28px 30px 30px;
}

.bunny-player-page.is-embed .bunny-player-panel {
    display: none;
}

.bunny-player-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
}

.bunny-player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.bunny-player-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    font-size: 13px;
}

.bunny-player-description {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 14px;
}

.bunny-player-embed-box {
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.bunny-player-embed-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.bunny-player-embed-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.bunny-player-embed-row textarea {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: #020617;
    color: #e2e8f0;
    font-size: 12px;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.5;
    resize: vertical;
}

.bunny-player-button {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bunny-player-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.bunny-player-note {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 12px;
}

@media (max-width: 768px) {
    .bunny-player-layout {
        padding: 10px;
    }

    .bunny-player-stage {
        aspect-ratio: 16 / 9;
    }

    .bunny-player-title {
        font-size: 22px;
    }

    .bunny-player-panel {
        padding: 18px;
    }

    .bunny-player-embed-row textarea {
        min-height: 112px;
    }

    .bunny-player-embed-row {
        flex-direction: column;
    }
}
