/* BrwnyXXX Video Gallery Custom Styles - Bunny Stream Integration */
:root {
    --bunny-radius-lg: 20px;
    --bunny-radius-md: 12px;
    --bunny-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --bunny-accent: #ffaa00;
}

.brawny-video-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 4%;
}

/* 1. Gallery Grid View */
#bunny-app-root {
    width: 100%;
    padding-bottom: 6rem;
}

.bunny-user-stats {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    text-align: right;
    font-weight: 600;
}

.bunny-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.bunny-card {
    border-radius: var(--bunny-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bunny-card:hover {
    transform: translateY(-8px);
    border-color: var(--bunny-accent);
    box-shadow: 0 15px 40px rgba(var(--bunny-accent), 0.2);
}

.bunny-thumbnail-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.bunny-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bunny-card:hover .bunny-thumbnail {
    transform: scale(1.05);
}

.bunny-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.bunny-watched-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bunny-accent);
    color: #000;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    z-index: 2;
}

.bunny-info {
    padding: 1.5rem;
}

.bunny-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #fff;
}

/* 2. Player View */
.bunny-player-nav {
    margin-bottom: 2rem;
}

.bunny-back-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bunny-accent);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.4rem;
    transition: opacity 0.2s;
}

.bunny-back-nav:hover {
    opacity: 0.8;
}

.bunny-player-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.bunny-player-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.bunny-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--bunny-radius-lg);
    overflow: hidden;
    box-shadow: var(--bunny-shadow);
}

.bunny-details {
    padding: 2rem 0;
}

.bunny-description {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.8;
    max-width: 800px;
}

/* Toast */
.bunny-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.bunny-toast {
    background: var(--bunny-accent);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: bunnySlideUp 0.3s forwards;
}

@keyframes bunnySlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .bunny-player-title { font-size: 1.8rem; }
    .bunny-gallery-grid { grid-template-columns: 1fr; }
}
