/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #C8AA6E;
    --primary-hover: #f0e6d2;
    --primary-dark: #785a28;
    --bg-dark: #010A13;
    --bg-darker: #0A1428;
    --bg-card: #0A323C;
    --bg-input: #1E2328;
    --text-primary: #F0E6D2;
    --text-secondary: #A09B8C;
    --border-color: #785a28;
    --danger-color: #C8413C;
    --success-color: #0ACF83;
    --blue-team: #0AC8B9;
    --red-team: #C8413C;
    --gold-gradient: linear-gradient(to bottom, #f0e6d2, #c8aa6e);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(10, 200, 185, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(200, 170, 110, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 50%, rgba(200, 170, 110, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: linear-gradient(to bottom, rgba(10, 20, 40, 0.98), rgba(1, 10, 19, 0.95));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-image {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--bg-dark);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.3);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: var(--primary-color);
    background-color: transparent;
}

nav a:hover::after {
    width: 80%;
}

nav a.active {
    color: var(--primary-color);
    background-color: transparent;
}

nav a.active::after {
    width: 80%;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.8));
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Buttons - LoL Style */
.btn-primary {
    background: linear-gradient(to bottom, #c89b3c 0%, #785a28 100%);
    color: #010a13;
    border: 2px solid #c8aa6e;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, #f0e6d2 0%, #c8aa6e 100%);
    box-shadow: 0 0 20px rgba(200, 170, 110, 0.5);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: linear-gradient(to bottom, #3c3c41 0%, #1e2328 100%);
    border-color: #3c3c41;
    color: #5b5a56;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(200, 170, 110, 0.1);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.3);
}

.btn-danger {
    background: linear-gradient(to bottom, #c84139 0%, #8a2b25 100%);
    color: white;
    border: 2px solid #c8413c;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(to bottom, #e84c44 0%, #c8413c 100%);
    box-shadow: 0 0 15px rgba(200, 65, 60, 0.5);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Form Inputs - LoL Style */
input[type="text"],
textarea,
select {
    width: 100%;
    background-color: rgba(1, 10, 19, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.2);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    cursor: pointer;
}

select option {
    background-color: var(--bg-darker);
    color: var(--text-primary);
}

/* Hero Slider Section */
.hero-slider {
    position: relative;
    margin: -2rem -2rem 2rem -2rem;
    height: 500px;
    overflow: hidden;
    background: var(--bg-darker);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(1, 10, 19, 0.3) 0%,
        rgba(1, 10, 19, 0.5) 50%,
        rgba(1, 10, 19, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slide:hover .slide-overlay {
    background: linear-gradient(
        to bottom,
        rgba(1, 10, 19, 0.2) 0%,
        rgba(1, 10, 19, 0.4) 50%,
        rgba(1, 10, 19, 0.85) 100%
    );
}

.slide-overlay h2 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(200, 170, 110, 0.5);
}

.slide-overlay p {
    color: var(--text-primary);
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: rgba(1, 10, 19, 0.8);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(200, 170, 110, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.3);
}

.slider-btn span {
    line-height: 1;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(200, 170, 110, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(200, 170, 110, 0.5);
}

.indicator.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.5);
}

/* Welcome Section (fallback) */
.welcome-section {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    border: 1px solid var(--border-color);
}

.welcome-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Chat Section - LoL Style */
.chat-section {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.6), rgba(1, 10, 19, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.chat-section h2 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.chat-container {
    background-color: rgba(1, 10, 19, 0.8);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(120, 90, 40, 0.3);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-welcome {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

.chat-message {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(120, 90, 40, 0.2);
}

.chat-message:last-child {
    border-bottom: none;
}

.chat-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.chat-nick {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

.chat-text {
    color: var(--text-primary);
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.8));
    border-top: 1px solid rgba(120, 90, 40, 0.3);
}

.chat-input-area input {
    margin-bottom: 0;
    background-color: rgba(1, 10, 19, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.2);
}

.chat-input-area input:first-child {
    width: 120px;
    flex-shrink: 0;
}

.chat-input-area input:nth-child(2) {
    flex: 1;
}

.chat-input-area button {
    background: linear-gradient(to bottom, #c89b3c 0%, #785a28 100%);
    color: #010a13;
    border: 1px solid #c8aa6e;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    background: linear-gradient(to bottom, #f0e6d2 0%, #c8aa6e 100%);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.4);
}

.chat-notice {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

/* Quick Links - LoL Style Cards */
.quick-links {
    background: transparent;
    padding: 3rem 0;
}

.quick-links h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .link-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .link-cards {
        grid-template-columns: 1fr;
    }
}

.link-card {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.8), rgba(1, 10, 19, 0.95));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 170, 110, 0.2);
}

.link-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.link-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.link-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Card with Background Image */
.card-with-bg {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    padding: 0;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.4);
}

.card-with-bg:hover .card-bg {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(1, 10, 19, 0.9) 0%, transparent 100%);
}

.card-with-bg h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.card-with-bg p {
    color: var(--text-primary);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* Champion Gallery */
.champion-gallery {
    background: transparent;
    border: none;
    padding: 2rem 0;
    overflow: hidden;
}

.champion-gallery h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-scroll {
    overflow: hidden;
    padding: 1rem 0;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    animation: scroll-gallery 30s linear infinite;
    width: max-content;
}

.gallery-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-gallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    flex-shrink: 0;
    width: 280px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(1, 10, 19, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200, 170, 110, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Page Header - LoL Style */
.page-header {
    position: relative;
    padding: 3rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.8), rgba(1, 10, 19, 0.95));
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(10, 200, 185, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h2 {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.page-header p {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Page Header with Background */
.page-header-bg {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.3);
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.page-header-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Board Section */
.board-section,
.video-section,
.balance-section {
    background: transparent;
    border: none;
    padding: 0;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(120, 90, 40, 0.3);
}

.board-header h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.write-form {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.6), rgba(1, 10, 19, 0.9));
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.write-form h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.hidden {
    display: none !important;
}

/* Board List - LoL Style */
.board-list {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.4), rgba(1, 10, 19, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.board-list table {
    width: 100%;
    border-collapse: collapse;
}

.board-list th,
.board-list td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(120, 90, 40, 0.2);
}

.board-list th {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.8), rgba(1, 10, 19, 0.9));
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.board-list tr:hover {
    background-color: rgba(200, 170, 110, 0.05);
}

.board-list td a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.board-list td a:hover {
    color: var(--primary-color);
}

.col-no { width: 60px; text-align: center; }
.col-author { width: 100px; }
.col-date { width: 100px; }

.empty-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Modal - LoL Style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 10, 19, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.95), rgba(1, 10, 19, 0.98));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(200, 170, 110, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    margin-bottom: 0.5rem;
    padding-right: 2rem;
    color: var(--primary-color);
}

.modal-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(120, 90, 40, 0.3);
}

.modal-body {
    background-color: rgba(1, 10, 19, 0.6);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    border: 1px solid rgba(120, 90, 40, 0.2);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

/* Video Section - LoL Style */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.6), rgba(1, 10, 19, 0.9));
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(200, 170, 110, 0.15);
    transform: translateY(-3px);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-bottom: 1px solid var(--border-color);
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.2rem;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.video-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(120, 90, 40, 0.2);
}

/* Balance Section - LoL Style */
.balance-section h2 {
    text-align: center;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.balance-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.player-input {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.player-input input {
    flex: 1;
    margin-bottom: 0;
}

.player-input select {
    width: 200px;
    margin-bottom: 0;
}

.player-list-container {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.4), rgba(1, 10, 19, 0.8));
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.player-list-container h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.6), rgba(1, 10, 19, 0.9));
    padding: 0.6rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.player-item:hover {
    border-color: var(--primary-color);
}

.player-name {
    font-weight: 600;
    color: var(--text-primary);
}

.player-tier {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background-color: rgba(1, 10, 19, 0.8);
    font-weight: 600;
}

/* Tier colors */
.tier-1 { color: #5e5e5e; }
.tier-2 { color: #8b4513; }
.tier-3 { color: #a0a0a0; }
.tier-4 { color: #ffd700; }
.tier-5 { color: #00cec9; }
.tier-6 { color: #00b894; }
.tier-7 { color: #74b9ff; }
.tier-8 { color: #a855f7; }
.tier-9 { color: #e91e63; }
.tier-10 { color: #ffeaa7; text-shadow: 0 0 10px #ffd700; }

.balance-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.team-result {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.team {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.9));
    padding: 1.5rem;
    border-radius: 4px;
}

.team h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-score {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(120, 90, 40, 0.3);
}

.team ul {
    list-style: none;
}

.team li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(120, 90, 40, 0.2);
    display: flex;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.team li:hover {
    background-color: rgba(200, 170, 110, 0.05);
}

.team li:last-child {
    border-bottom: none;
}

.team-blue {
    border: 2px solid var(--blue-team);
    box-shadow: 0 0 20px rgba(10, 200, 185, 0.15);
}

.team-blue h3 {
    color: var(--blue-team);
}

.team-red {
    border: 2px solid var(--red-team);
    box-shadow: 0 0 20px rgba(200, 65, 60, 0.15);
}

.team-red h3 {
    color: var(--red-team);
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    align-self: center;
    text-shadow: 0 0 20px rgba(200, 170, 110, 0.5);
}

.score-diff {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.4), rgba(1, 10, 19, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.score-diff span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Schedule Section - LoL Style */
.schedule-section {
    background: transparent;
    border: none;
    padding: 0;
}

.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.calendar-nav h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 180px;
    text-align: center;
}

.calendar-nav button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.calendar-container {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day-name {
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.calendar-day-name.sun {
    color: var(--red-team);
}

.calendar-day-name.sat {
    color: var(--blue-team);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 4px;
    background: rgba(1, 10, 19, 0.6);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 60px;
}

.calendar-day:hover {
    border-color: var(--primary-color);
    background: rgba(200, 170, 110, 0.1);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.calendar-day.other-month:hover {
    border-color: transparent;
    background: rgba(1, 10, 19, 0.6);
}

.calendar-day.today {
    border-color: var(--primary-color);
    background: rgba(200, 170, 110, 0.15);
}

.calendar-day.today .day-number {
    color: var(--primary-color);
    font-weight: 700;
}

.calendar-day.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

.calendar-day.sun .day-number {
    color: var(--red-team);
}

.calendar-day.sat .day-number {
    color: var(--blue-team);
}

.calendar-day.has-schedule {
    background: rgba(10, 200, 185, 0.1);
}

.day-number {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.schedule-badge {
    position: absolute;
    bottom: 3px;
    font-size: 0.6rem;
    line-height: 1.2;
    color: var(--blue-team);
    text-align: center;
    font-weight: 600;
}

.schedule-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.schedule-list {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.4), rgba(1, 10, 19, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
}

.schedule-list h3 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(120, 90, 40, 0.3);
}

.upcoming-schedules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.6), rgba(1, 10, 19, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.schedule-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(200, 170, 110, 0.15);
}

.schedule-item.today {
    border-color: var(--blue-team);
    background: linear-gradient(to bottom, rgba(10, 200, 185, 0.1), rgba(1, 10, 19, 0.9));
}

.schedule-item-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 150px;
}

.schedule-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.schedule-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.schedule-item-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.schedule-item-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.schedule-item-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.5rem;
    background: rgba(10, 200, 185, 0.1);
    border: 1px solid var(--blue-team);
    border-radius: 4px;
}

.schedule-item-count.full {
    background: rgba(200, 170, 110, 0.1);
    border-color: var(--primary-color);
}

.count-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-team);
}

.schedule-item-count.full .count-number {
    color: var(--primary-color);
}

.count-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Modal Large */
.modal-large {
    max-width: 800px;
    max-height: 90vh;
}

/* Match Header */
.match-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(120, 90, 40, 0.3);
}

.match-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.match-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.match-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.participant-count {
    background: rgba(10, 200, 185, 0.2);
    color: var(--blue-team);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
}

.participant-count.full {
    background: rgba(200, 170, 110, 0.2);
    color: var(--primary-color);
}

.match-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Join Form */
.join-form {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.join-form h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-inputs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.join-inputs input,
.join-inputs select {
    margin-bottom: 0;
    flex: 1;
    min-width: 120px;
}

.join-inputs button {
    flex-shrink: 0;
}

/* Participants Section */
.participants-section {
    margin-bottom: 1.5rem;
}

.participants-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.position-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.position-group {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.4), rgba(1, 10, 19, 0.7));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.position-group.position-full {
    border-color: var(--blue-team);
    background: linear-gradient(to bottom, rgba(10, 200, 185, 0.1), rgba(1, 10, 19, 0.8));
}

.position-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pos-icon {
    font-size: 1.1rem;
}

.pos-count {
    margin-left: auto;
    font-size: 0.8rem;
}

.position-players {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.empty-position {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

.participant-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(1, 10, 19, 0.8);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.participant-name {
    font-weight: 600;
    color: var(--text-primary);
}

.participant-tier {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: rgba(1, 10, 19, 0.5);
}

.remove-participant {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.25rem;
    opacity: 0.6;
    transition: all 0.2s;
}

.remove-participant:hover {
    color: var(--danger-color);
    opacity: 1;
}

/* Team Arrange Section */
.team-arrange-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.arrange-notice {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Team Arrange Result */
.team-arrange-result {
    margin-bottom: 1.5rem;
}

.team-arrange-result h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.squad-result {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
}

.squad-team {
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.5), rgba(1, 10, 19, 0.9));
    border-radius: 4px;
    padding: 1rem;
}

.squad-blue {
    border: 2px solid var(--blue-team);
    box-shadow: 0 0 15px rgba(10, 200, 185, 0.15);
}

.squad-blue h5 {
    color: var(--blue-team);
}

.squad-purple {
    border: 2px solid #9b59b6;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.15);
}

.squad-purple h5 {
    color: #9b59b6;
}

.squad-team h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.squad-score {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(120, 90, 40, 0.3);
}

.squad-members {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.squad-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(120, 90, 40, 0.15);
}

.squad-member:last-child {
    border-bottom: none;
}

.member-pos {
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 70px;
}

.member-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.member-tier {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: rgba(1, 10, 19, 0.5);
}

.squad-vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    align-self: center;
    text-shadow: 0 0 15px rgba(200, 170, 110, 0.5);
}

.squad-diff {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(to bottom, rgba(10, 50, 60, 0.4), rgba(1, 10, 19, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
}

.squad-diff span {
    color: var(--primary-color);
    font-weight: 700;
}

/* Schedule Form Inputs */
input[type="date"],
input[type="time"] {
    width: 100%;
    background-color: rgba(1, 10, 19, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(200, 170, 110, 0.2);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

/* Footer - LoL Style */
footer {
    background: linear-gradient(to bottom, rgba(10, 20, 40, 0.95), rgba(1, 10, 19, 1));
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-slider {
        height: 400px;
    }

    .slide-overlay h2 {
        font-size: 2.5rem;
    }

    .slide-overlay p {
        font-size: 1.1rem;
    }

    .gallery-item {
        width: 220px;
        height: 125px;
    }

    .card-with-bg {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    main {
        padding: 1rem;
    }

    .page-header {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 2rem 1rem;
    }

    .page-header h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .hero-slider {
        height: 350px;
        margin: -1rem -1rem 1.5rem -1rem;
    }

    .slide-overlay h2 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .slide-overlay p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .slider-controls {
        bottom: 15px;
        right: 15px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .slider-indicators {
        bottom: 18px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .gallery-item {
        width: 180px;
        height: 100px;
    }

    .card-with-bg {
        min-height: 160px;
    }

    .page-header-bg {
        min-height: 150px;
    }

    .page-header-content h2 {
        font-size: 1.8rem;
    }

    .chat-input-area {
        flex-wrap: wrap;
    }

    .chat-input-area input:first-child {
        width: 100%;
    }

    .player-input {
        flex-direction: column;
    }

    .player-input select {
        width: 100%;
    }

    .team-result {
        grid-template-columns: 1fr;
    }

    .vs {
        text-align: center;
        padding: 0.5rem 0;
    }

    .board-list th:nth-child(3),
    .board-list td:nth-child(3) {
        display: none;
    }

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

    .board-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .board-header h2 {
        text-align: center;
    }

    /* Calendar responsive */
    .calendar-nav h3 {
        font-size: 1.2rem;
        min-width: 140px;
    }

    .calendar-day {
        min-height: 45px;
        padding: 0.25rem;
    }

    .day-number {
        font-size: 0.85rem;
    }

    .schedule-dot {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        bottom: 2px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .schedule-item-date {
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
    }

    .schedule-item {
        flex-direction: column;
    }

    .schedule-item-count {
        align-self: flex-start;
    }

    .join-inputs {
        flex-direction: column;
    }

    .join-inputs input,
    .join-inputs select {
        width: 100%;
    }

    .squad-result {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .squad-vs {
        text-align: center;
        padding: 0.5rem 0;
    }

    .position-group {
        padding: 0.5rem 0.75rem;
    }

    .participant-card {
        padding: 0.3rem 0.5rem;
        font-size: 0.85rem;
    }
}
