.tournament-home {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.tournament-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(5, 8, 15, 0.9), rgba(16, 18, 32, 0.82)),
        url('/tournaments/testassets/images/gamingcube.png') center/cover no-repeat;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(210, 3, 184, 0.2), transparent 28%),
        radial-gradient(circle at 82% 24%, rgba(65, 137, 255, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(8, 11, 18, 0.35), rgba(8, 11, 18, 0.7));
    pointer-events: none;
}

.hero-copy,
.hero-spotlight {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 430px;
}

.hero-eyebrow,
.section-kicker,
.spotlight-kicker {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #c9d3ea;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0;
    max-width: 780px;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.6rem, 4vw, 4.3rem);
    line-height: 0.95;
    text-transform: uppercase;
    color: #f8fbff;
}

.hero-copy p {
    max-width: 640px;
    margin: 0;
    color: #a5b2c9;
    font-size: 1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-1px);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #d103b8, #5d7cff);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(93, 124, 255, 0.25);
}

.hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 14, 22, 0.58);
    color: #f1f5ff;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.hero-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 90px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 16, 27, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-label {
    color: #8f9db5;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-highlight strong {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 800;
}

.hero-spotlight {
    display: flex;
    align-items: stretch;
}

.spotlight-shell,
.spotlight-card {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    background: rgba(8, 11, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.spotlight-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spotlight-empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    color: #8f9db5;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.spotlight-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spotlight-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.spotlight-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.spotlight-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.1;
}

.spotlight-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.spotlight-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.spotlight-meta-item span {
    color: #8f9db5;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.spotlight-meta-item strong {
    color: #f7fbff;
    font-size: 0.92rem;
    font-weight: 700;
}

.spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spotlight-link,
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.spotlight-link-primary,
.card-button {
    background: linear-gradient(135deg, #d103b8, #5d7cff);
    color: #ffffff;
}

.spotlight-link-secondary,
.secondary-button {
    background: rgba(255, 255, 255, 0.07);
    color: #e8efff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-section,
.browse-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rail-header,
.browse-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.rail-header h2,
.browse-copy h2 {
    margin: 0.2rem 0 0;
    font-family: 'Barlow', sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    text-transform: uppercase;
    color: #f7faff;
}

.rail-header p,
.browse-copy p {
    margin: 0;
    max-width: 520px;
    color: #8896ac;
    line-height: 1.55;
}

.tournament-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}

.tournament-rail .tournament-card-shell {
    scroll-snap-align: start;
}

.browse-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, 0.7fr));
    gap: 12px;
    width: min(100%, 720px);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.control-group label {
    color: #8f9db5;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.control-group input,
.control-group select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(12, 16, 25, 0.88);
    color: #f3f6ff;
    font-size: 0.9rem;
}

.browse-meta {
    color: #8b98af;
    font-size: 0.84rem;
    font-weight: 600;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
    justify-content: start;
    gap: 18px;
}

.tournament-card-shell {
    display: block;
    width: 100%;
    max-width: 340px;
}

.tournament-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 20, 31, 0.96), rgba(12, 15, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: rgba(120, 156, 255, 0.3);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.tournament-card-media {
    position: relative;
}

.tournament-banner {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
}

.tournament-status {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.status-live {
    background: linear-gradient(135deg, #ff2667, #ff6cab);
}

.status-upcoming {
    background: linear-gradient(135deg, #6b58ff, #9f6bff);
}

.status-completed {
    background: linear-gradient(135deg, #596273, #7f8aa0);
}

.tournament-phase {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(5, 8, 15, 0.74);
    color: #d8e0f2;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tournament-meta {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

.tournament-meta h3 {
    margin: 0;
    color: #f8fbff;
    font-size: 1rem;
    line-height: 1.2;
}

.tournament-description {
    margin: 0;
    color: #8d9bb2;
    font-size: 0.86rem;
    line-height: 1.5;
}

.tournament-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.detail-chip {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.detail-chip span {
    color: #8090ab;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-chip strong {
    color: #eff4ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.no-results {
    margin: 0;
    padding: 24px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #95a3b9;
}

@media (max-width: 1150px) {
    .tournament-hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .browse-controls {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-highlights,
    .spotlight-meta,
    .tournament-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tournament-hero {
        padding: 18px;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .tournament-rail {
        grid-auto-columns: minmax(280px, 82vw);
    }

    .tournament-grid {
        grid-template-columns: 1fr;
    }
}
