/* Animated section backgrounds */
.section-bg-animated {
    position: relative;
    overflow: hidden;
}

.section-bg-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    z-index: 0;
}

.section-bg-green::before {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0,230,118,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(255,215,64,0.25) 0%, transparent 50%);
    animation: bgShift 15s ease-in-out infinite alternate;
}

.section-bg-blue::before {
    background:
        radial-gradient(ellipse at 70% 20%, rgba(68,138,255,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(179,136,255,0.25) 0%, transparent 50%);
    animation: bgShift 18s ease-in-out infinite alternate;
}

.section-bg-yellow::before {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255,215,64,0.4) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 80%, rgba(0,230,118,0.25) 0%, transparent 50%);
    animation: bgShift 16s ease-in-out infinite alternate;
}

.section-bg-gradient::before {
    background:
        radial-gradient(ellipse at 10% 40%, rgba(0,230,118,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(255,215,64,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(68,138,255,0.25) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

/* Landing Hero */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--br-black);
}

.landing-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(0,230,118,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(68,138,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(255,215,64,0.06) 0%, transparent 40%),
        linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.75) 100%);
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.landing-hero-title {
    font-family: var(--font-display);
    font-size: 7rem;
    font-weight: 900;
    letter-spacing: 12px;
    line-height: 0.85;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6), 0 4px 40px rgba(0,0,0,0.4);
}

.landing-hero-title span {
    display: block;
    font-size: 9rem;
    font-weight: 900;
    background: var(--gradient-main);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
    filter: drop-shadow(0 2px 20px rgba(0,230,118,0.3));
}

.landing-hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--br-gray-light);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 48px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.landing-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.p5-btn-large {
    padding: 16px 48px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--br-black);
    background: var(--gradient-main);
    background-size: 200% 100%;
    border: none;
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    animation: gradientShift 5s ease infinite;
    text-shadow: none;
}

.p5-btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.p5-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,200,83,0.3), 0 0 60px rgba(255,214,0,0.12);
}

.p5-btn-large:hover::before {
    left: 100%;
}

.p5-btn-large:active {
    transform: translateY(0) scale(0.98);
}

.p5-btn-outline {
    padding: 16px 48px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 4px;
    color: var(--br-white);
    background: transparent;
    border: 1px solid var(--br-border-light);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
}

.p5-btn-outline:hover {
    border-color: var(--br-green);
    background: rgba(0,200,83,0.08);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0,200,83,0.15);
}

.landing-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* CAROUSEL */
.games-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.games-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 16px 8px;
    scrollbar-width: none;
}

.games-carousel::-webkit-scrollbar {
    display: none;
}

.games-carousel .p5-card {
    min-width: 360px;
    max-width: 400px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    color: var(--br-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s var(--ease-out-expo);
}

.carousel-btn:hover {
    background: var(--br-green);
    border-color: var(--br-green);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--br-green-glow);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--br-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--gradient-main);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Grid fallback */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.forums-preview {
    display: grid;
    gap: 10px;
}

/* Updates timeline */
.updates-timeline {
    position: relative;
    padding-left: 32px;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--br-border);
}

.updates-timeline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 30%;
    background: linear-gradient(180deg, var(--br-green), transparent);
}

.update-item {
    position: relative;
    padding: 22px 24px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    margin-bottom: 16px;
    margin-left: 22px;
    transition: all 0.3s var(--ease-out-expo);
}

.update-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 28px;
    width: 10px;
    height: 10px;
    background: var(--br-green);
    border-radius: 50%;
    border: 2px solid var(--br-black);
    box-shadow: 0 0 10px var(--br-green-glow);
}

.update-item:hover {
    border-color: rgba(0,200,83,0.25);
    transform: translateX(4px);
}

.update-date {
    font-size: 0.78rem;
    color: var(--br-green);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.update-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.update-text {
    font-size: 0.88rem;
    color: var(--br-gray-light);
    line-height: 1.6;
}

/* Game detail tabs */
.game-tabs-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.traduction-item, .mod-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
    margin-bottom: 8px;
}

.traduction-item:hover, .mod-item:hover {
    border-color: rgba(0,200,83,0.25);
    transform: translateX(4px);
}

.file-icon {
    width: 44px;
    height: 44px;
    background: var(--br-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.file-info { flex: 1; }

.file-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.file-meta {
    font-size: 0.78rem;
    color: var(--br-gray-light);
    margin-top: 4px;
    display: flex;
    gap: 16px;
}

.file-download {
    padding: 8px 20px;
    background: var(--gradient-main);
    background-size: 200% 100%;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--br-black);
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
}

.file-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-sm);
}

.soundtrack-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
    margin-bottom: 8px;
}

.soundtrack-item:hover {
    border-color: rgba(0,230,118,0.2);
}

.soundtrack-number {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 36px;
    text-align: center;
}

.soundtrack-info { flex: 1; }

.soundtrack-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.soundtrack-artist {
    font-size: 0.78rem;
    color: var(--br-gray-light);
}

.soundtrack-extra {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 7px;
    background: rgba(0,230,118,0.1);
    border: 1px solid rgba(0,230,118,0.2);
    border-radius: 4px;
    color: var(--br-green-light);
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

.soundtrack-links {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.soundtrack-link {
    padding: 3px 10px;
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--br-border);
    color: var(--br-gray-light);
    border-radius: 6px;
    transition: all 0.25s ease;
}

.soundtrack-link:hover {
    background: var(--br-green);
    border-color: var(--br-green);
    color: var(--br-white);
}

.soundtrack-play-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.soundtrack-duration {
    font-size: 0.78rem;
    color: var(--br-gray-light);
    font-family: var(--font-heading);
    min-width: 36px;
    text-align: right;
}

.soundtrack-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--br-border);
    background: var(--br-card);
    color: var(--br-green);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.soundtrack-play-btn:hover {
    background: var(--br-green);
    border-color: var(--br-green);
    color: var(--br-white);
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(0,230,118,0.3);
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    background: var(--br-dark);
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.comment-body { flex: 1; }

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--br-gray-light);
}

.comment-text {
    font-size: 0.88rem;
    color: var(--br-gray-light);
    line-height: 1.6;
}

/* Auth */
.auth-container {
    max-width: 460px;
    margin: 60px auto;
    padding: 44px 40px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--br-gray-light);
}

.auth-switch a {
    color: var(--br-green-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--br-green);
    text-decoration: underline;
}

/* About */
.about-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 70px 40px;
}

.about-section {
    margin-bottom: 64px;
}

.about-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 18px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-section p {
    font-size: 0.9rem;
    color: var(--br-gray-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--br-dark);
    border: 1px solid var(--br-border);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
    margin: 6px;
}

.about-link:hover {
    background: rgba(0,230,118,0.08);
    border-color: var(--br-green);
    transform: translateY(-2px);
}

/* Community */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.announcement-card {
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-left: 3px solid var(--br-green);
    padding: 24px;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s var(--ease-out-expo);
}

.announcement-card:hover {
    border-color: var(--br-green);
    border-left-width: 3px;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.announcement-date {
    font-size: 0.78rem;
    color: var(--br-green);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.announcement-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.announcement-text {
    font-size: 0.88rem;
    color: var(--br-gray-light);
    line-height: 1.6;
}

/* Audio player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid var(--br-border);
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.audio-player.visible {
    transform: translateY(0);
    pointer-events: all;
}

.audio-player-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 200px;
}

.audio-thumb {
    width: 48px;
    height: 48px;
    background: var(--br-dark);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.audio-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.audio-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-artist {
    font-size: 0.75rem;
    color: var(--br-gray-light);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audio-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-radius: 50%;
    color: var(--br-gray-light);
}

.audio-btn:hover {
    color: var(--br-white);
    transform: scale(1.1);
}

.audio-btn-play {
    width: 42px;
    height: 42px;
    background: var(--gradient-main);
    background-size: 200% 100%;
    color: var(--br-black);
    border-radius: 50%;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(0,230,118,0.25);
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
}

.audio-btn-play:hover {
    box-shadow: 0 4px 20px rgba(0,230,118,0.4);
}

.audio-progress-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audio-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--br-border);
    cursor: pointer;
    position: relative;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.audio-progress-bar:hover {
    height: 6px;
}

.audio-progress-fill {
    height: 100%;
    background: var(--gradient-main);
    background-size: 200% 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
    animation: gradientShift 3s ease infinite;
}

.audio-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--br-green);
    border-radius: 50%;
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 0 8px var(--br-green-glow);
}

.audio-progress-bar:hover .audio-progress-thumb {
    opacity: 1;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--br-gray-light);
}

.audio-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--br-border);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--br-green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px var(--br-green-glow);
}

.audio-close {
    font-size: 0.85rem;
    color: var(--br-gray-light);
    border-radius: 50%;
}

.audio-close:hover {
    color: var(--br-white);
}

/* Profile */
.profile-page-header {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.profile-page-banner {
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    background-size: cover;
    background-position: center;
}

.profile-page-avatar-area {
    position: absolute;
    bottom: -48px;
    left: 60px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.profile-page-avatar {
    width: 110px;
    height: 110px;
    border: 4px solid var(--br-card);
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: var(--br-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.profile-page-info {
    padding-bottom: 8px;
}

.profile-page-name {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: 4px;
}

.profile-page-body {
    padding: 80px 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-bio-section {
    margin-bottom: 28px;
}

.profile-bio-section h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-bio-section p {
    color: var(--br-gray-light);
    line-height: 1.7;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.profile-detail-item {
    padding: 16px 18px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 10px;
}

.profile-detail-label {
    font-size: 0.72rem;
    color: var(--br-gray-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.profile-detail-value {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Presets */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

.preset-option {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--br-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    background-size: cover;
    background-position: center;
}

.preset-option:hover {
    border-color: var(--br-border-light);
    transform: scale(1.08);
}

.preset-option.selected {
    border-color: var(--br-green);
    box-shadow: 0 0 12px var(--br-green-glow);
}

.preset-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.preset-banner-option {
    width: 100%;
    height: 90px;
    border: 2px solid var(--br-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    background-size: cover;
    background-position: center;
}

.preset-banner-option:hover {
    border-color: var(--br-border-light);
    transform: scale(1.02);
}

.preset-banner-option.selected {
    border-color: var(--br-green);
    box-shadow: 0 0 12px var(--br-green-glow);
}

/* Search */
.search-bar {
    position: relative;
    max-width: 500px;
    margin-bottom: 30px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--br-gray-light);
    pointer-events: none;
}

.search-bar .p5-input {
    padding-left: 46px;
}

/* Video */
.video-embed {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--br-dark);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.gameplay-card {
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
}

.gameplay-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--br-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gameplay-info {
    flex: 1;
}

.gameplay-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.gameplay-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.gameplay-channel-name {
    color: var(--br-green-light);
    transition: color 0.3s ease;
}

.gameplay-channel-name:hover {
    color: var(--br-green);
    text-decoration: underline;
}

.gameplay-subscribers {
    color: var(--br-gray-light);
    font-size: 0.75rem;
}

.gameplay-card .video-embed {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--br-card);
    border: 1px dashed var(--br-border);
    border-radius: 14px;
    animation: fadeIn 0.4s ease;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--br-white);
    margin-bottom: 6px;
}

.empty-state-text {
    font-size: 0.88rem;
    color: var(--br-gray-light);
    line-height: 1.6;
}

/* Login prompt */
.login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 28px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    font-size: 0.92rem;
    color: var(--br-gray-light);
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

.login-prompt a {
    color: var(--br-green-light);
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-prompt a:hover {
    color: var(--br-green);
    text-decoration: underline;
}

/* Store cards */
.store-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.store-card:hover {
    border-color: rgba(0,230,118,0.25);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.store-card-best {
    border-color: rgba(0,230,118,0.3);
    background: linear-gradient(135deg, rgba(0,230,118,0.05) 0%, var(--br-card) 100%);
}

.store-card-best::before {
    content: 'MELHOR PREÇO';
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    background: var(--br-green);
    color: var(--br-black);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 0 12px 0 10px;
}

.store-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    font-weight: 700;
    font-family: var(--font-display);
}

.store-icon-steam { background: linear-gradient(135deg, #1b2838, #2a475e); color: #66c0f4; }
.store-icon-gog { background: linear-gradient(135deg, #1a1a2e, #2d1b4e); color: #a855f7; }
.store-icon-humble { background: linear-gradient(135deg, #1a1a1a, #333); color: #c9a227; }
.store-icon-fanatical { background: linear-gradient(135deg, #1a2332, #233040); color: #38bdf8; }
.store-icon-eneba { background: linear-gradient(135deg, #0d1117, #161b22); color: #22c55e; }
.store-icon-playstation { background: linear-gradient(135deg, #003087, #0070d1); color: #fff; }
.store-icon-nintendo { background: linear-gradient(135deg, #e60012, #c5000f); color: #fff; }
.store-icon-xbox { background: linear-gradient(135deg, #0e7a0d, #107c10); color: #fff; }
.store-icon-default { background: var(--br-dark); color: var(--br-gray-light); }

.store-info { flex: 1; }

.store-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.store-platform {
    font-size: 0.75rem;
    color: var(--br-gray-light);
}

.store-coupon {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    background: rgba(255,215,64,0.12);
    border: 1px solid rgba(255,215,64,0.25);
    border-radius: 4px;
    color: var(--br-yellow);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

.store-price-area {
    text-align: right;
    flex-shrink: 0;
}

.store-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--br-white);
}

.store-price-free {
    color: var(--br-green);
}

.store-price-original {
    font-size: 0.75rem;
    color: var(--br-gray-light);
    text-decoration: line-through;
    margin-top: 2px;
}

.store-buy {
    padding: 10px 22px;
    background: var(--gradient-main);
    background-size: 200% 100%;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--br-black);
    border-radius: 8px;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    animation: gradientShift 4s ease infinite;
    text-shadow: none;
    text-decoration: none;
    flex-shrink: 0;
}

.store-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,230,118,0.3);
}

.store-updated {
    font-size: 0.68rem;
    color: var(--br-gray-light);
    text-align: center;
    margin-top: 12px;
    opacity: 0.7;
}

.platforms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: var(--badge-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.platform-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.requirements-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 4px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 10px;
    color: var(--br-gray-light);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.requirements-toggle:hover {
    border-color: rgba(0,200,83,0.3);
    color: var(--br-green);
}

.requirements-toggle.open {
    border-color: rgba(0,200,83,0.4);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: var(--br-green);
}

.requirements-toggle-text {
    flex: 1;
    text-align: left;
}

.requirements-toggle-arrow {
    font-size: 0.75rem;
    transition: transform 0.4s var(--ease-out-expo);
    display: inline-block;
}

.requirements-toggle.open .requirements-toggle-arrow {
    transform: rotate(180deg);
}

.requirements-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), opacity 0.3s;
    opacity: 0;
    margin-bottom: 24px;
}

.requirements-content.open {
    max-height: 1200px;
    opacity: 1;
}

.req-panel {
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    margin-bottom: 16px;
}

.req-panel:last-child {
    border-radius: 0 0 10px 10px;
}

.req-panel-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--br-green);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.req-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.req-column-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--br-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--br-border);
}

.req-field {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    gap: 12px;
}

.req-field:last-child {
    border-bottom: none;
}

.req-label {
    color: var(--br-gray);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.req-value {
    color: var(--br-gray-light);
    font-size: 0.85rem;
    text-align: right;
}

.games-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 12px;
    transition: border-color 0.3s;
}

.games-search-bar:focus-within {
    border-color: rgba(0,200,83,0.4);
}

.games-search-icon {
    font-size: 1.1rem;
    opacity: 0.5;
}

.games-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--br-gray-light);
    font-family: var(--font-body);
    font-size: 1rem;
}

.games-search-input::placeholder {
    color: var(--br-gray);
    opacity: 0.5;
}

.games-search-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.advanced-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 8px;
    color: var(--br-gray-light);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.advanced-search-toggle:hover {
    border-color: rgba(0,200,83,0.3);
    color: var(--br-green);
}

.advanced-search-toggle.open {
    border-color: rgba(0,200,83,0.4);
    color: var(--br-green);
}

.advanced-search-arrow {
    font-size: 0.7rem;
    transition: transform 0.4s var(--ease-out-expo);
    display: inline-block;
}

.advanced-search-toggle.open .advanced-search-arrow {
    transform: rotate(180deg);
}

.games-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: none;
    border: 1px solid rgba(244,67,54,0.3);
    border-radius: 8px;
    color: #f44336;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.games-clear-btn:hover {
    background: rgba(244,67,54,0.1);
    border-color: rgba(244,67,54,0.5);
}

.games-counter {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--br-gray);
    letter-spacing: 1px;
}

.brazilian-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 8px;
    color: var(--br-gray-light);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    user-select: none;
}

.brazilian-toggle:hover {
    border-color: rgba(0,200,83,0.3);
    color: var(--br-green);
}

.brazilian-toggle.active {
    border-color: rgba(0,200,83,0.5);
    color: var(--br-green);
    background: rgba(0,200,83,0.08);
}

.brazilian-toggle .flag-icon {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.3s var(--ease-out-expo);
}

.brazilian-toggle:hover .flag-icon {
    transform: scale(1.15);
}

.brazilian-toggle.active .flag-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(0,200,83,0.4));
}

.advanced-search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), opacity 0.3s, margin 0.3s;
    opacity: 0;
    margin-bottom: 0;
}

.advanced-search-panel.open {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 20px;
}

.advanced-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--br-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.games-filter-select {
    padding: 8px 12px;
    background: var(--br-dark);
    border: 1px solid var(--br-border);
    border-radius: 8px;
    color: var(--br-gray-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: auto;
}

.games-filter-select:hover {
    border-color: rgba(0,200,83,0.3);
}

.games-filter-select:focus {
    outline: none;
    border-color: rgba(0,200,83,0.5);
}

.opcards-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: none;
    border: 1px solid var(--br-border);
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    margin-bottom: 14px;
    float: right;
}

.opcards-toggle:hover {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.opcards-toggle-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.opcards-toggle-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--br-gray);
    transition: color 0.2s;
}

.opcards-toggle:hover .opcards-toggle-text {
    color: var(--br-gray-light);
}

.opcards-wrapper {
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s var(--ease-out-expo), opacity 0.3s ease;
}

.opcards-hidden {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

.opcards-hiding {
    animation: opcardsSlideUp 0.4s var(--ease-out-expo) forwards;
}

.opcards-showing {
    animation: opcardsSlideDown 0.4s var(--ease-out-expo) forwards;
}

@keyframes opcardsSlideUp {
    from {
        max-height: 600px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

@keyframes opcardsSlideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 600px;
        opacity: 1;
    }
}

.op-card {
    display: flex;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
    position: relative;
}

.op-card:hover {
    border-color: var(--op-color, rgba(255,255,255,0.1));
    transform: translateY(-2px);
}

.op-card-accent {
    width: 4px;
    flex-shrink: 0;
}

.op-card-content {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.op-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.op-card-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--br-gray-light);
    margin: 0;
}

.op-card-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
}

.op-card-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--br-gray);
    line-height: 1.6;
    margin: 0;
}

.op-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.op-card-stats {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--br-gray);
    opacity: 0.7;
}

.op-card-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.op-card-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.tag-input-group {
    position: relative;
}

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--br-dark);
    border: 1px solid var(--br-border);
    border-radius: 8px;
    min-height: 40px;
    cursor: text;
    transition: border-color 0.3s;
}

.tag-input-container:focus-within {
    border-color: rgba(0,200,83,0.5);
}

.tag-input-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(0,200,83,0.15);
    border: 1px solid rgba(0,200,83,0.3);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--br-green);
    white-space: nowrap;
    animation: tagFadeIn 0.2s var(--ease-out-expo);
}

@keyframes tagFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.tag-input-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    background: none;
    border: none;
    color: var(--br-green);
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}

.tag-input-remove:hover {
    background: rgba(0,200,83,0.25);
}

.tag-input-field {
    flex: 1;
    min-width: 100px;
    background: none;
    border: none;
    outline: none;
    color: var(--br-gray-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.tag-input-field::placeholder {
    color: var(--br-gray);
    opacity: 0.5;
}

.tag-input-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--br-card);
    border: 1px solid var(--br-border);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease-out-expo), opacity 0.2s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.tag-input-dropdown.open {
    max-height: 200px;
    overflow-y: auto;
    opacity: 1;
}

.tag-input-option {
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--br-gray-light);
    cursor: pointer;
    transition: background 0.15s;
}

.tag-input-option:first-child {
    border-radius: 8px 8px 0 0;
}

.tag-input-option:last-child {
    border-radius: 0 0 8px 8px;
}

.tag-input-option:hover {
    background: rgba(0,200,83,0.1);
    color: var(--br-green);
}

.tag-input-empty {
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--br-gray);
    font-style: italic;
}

@media (max-width: 600px) {
    .store-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    .store-buy {
        width: 100%;
        text-align: center;
    }
}
