/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141419;
    --accent-gold: #d4af37; /* Color Legacy */
    --accent-red: #ff3333;  /* Color Bombsquad */
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 110vh; /* Cambiado de 80vh a 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    background-color: #000; 
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene el video encuadrado sin barras negras */
    border-radius: 8px 8px 0 0; /* Suaviza las esquinas superiores de la tarjeta */
}

/* Contenedor de las estadísticas del video */
.video-stats {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre el botón de like y el ojo de vistas */
    margin-top: 10px;
}

/* Botón de me gusta */
.like-btn {
    background: #1e1e24; /* O el color oscuro de tu fondo */
    color: #ffffff;
    border: 1px solid #33333b;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.like-btn:hover {
    border-color: #d63031;
    background: rgba(214, 48, 49, 0.05);
}

/* Estado del botón cuando el usuario YA le ha dado like */
.like-btn.liked {
    background: rgba(214, 48, 49, 0.15) !important; /* Fondo oscuro con un leve toque rojo */
    border-color: #d63031 !important;              /* Borde rojo encendido */
    color: #fff !important;                         /* Texto en blanco */
    box-shadow: 0 0 12px rgba(214, 48, 49, 0.4);    /* Brillo sutil rojo alrededor del botón */
    transform: scale(1.02);                         /* Un levísimo efecto de pulsado */
}

/* Contador de vistas */
.view-counter {
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.view-counter .eye-icon {
    opacity: 0.8;
}

/* New CSS to format the webm video background correctly */
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Acts like background-size: cover */
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4), var(--bg-dark));
    z-index: 1; /* Sits right on top of the video */
}

.hero-content {
    position: relative;
    z-index: 2; /* Sits on top of the overlay */
    padding: 20px;
}

.guild-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--text-main);
    text-shadow: 0px 0px 20px rgba(212, 175, 55, 0.6);
    margin-bottom: 10px;
}

.guild-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* BOTONES */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-red);
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 51, 51, 0.7);
}

/* BARRA DE ESTADÍSTICAS */
.stats-bar {
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-card);
    padding: 30px 10px;
    border-top: 2px solid #222;
    border-bottom: 2px solid #222;
}

/* CORREGIDO: Se eliminó el "text-align: center;" que estaba duplicado fuera de las llaves e invalidaba la regla */
.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECCIÓN DE CLIPS (GRID) */
.clips-section {
    padding: 80px 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.clip-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.clip-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

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

.clip-info {
    padding: 20px;
}

.clip-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.clip-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* FOOTER & CONTACTO */
.contact-footer {
    background: linear-gradient(to top, #000000, var(--bg-dark));
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #1c1c22;
}

.contact-footer h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.highlight {
    color: var(--accent-gold);
}

.contact-footer p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-discord, .btn-secondary {
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.btn-discord {
    background-color: #5865F2; /* Discord Blurple */
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background-color: white;
    color: black;
}

.copyright {
    font-size: 0.8rem;
    color: #444 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .guild-title { font-size: 2.8rem; }
    .stats-bar { flex-direction: column; gap: 20px; }
    .clips-grid { grid-template-columns: 1fr; }
}