@font-face {
    font-family: 'Matroska';
    src: url('../../fonts/Matroska.woff2') format('woff2'),
         url('../../fonts/Matroska.woff') format('woff'),
         url('../../fonts/Matroska.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   SYSTEM VARIABLES & GLOBAL STYLES
   ========================================= */

:root {
    --ajl-bg: #0c2b35;
    --ajl-bg-dark: #041b22;
    --ajl-rose-gold: #d9a58f;
    --ajl-gold-light: #e0b49c;
    --ajl-text: #e8e5e1;
    --ajl-dark-text: #092831;
    --ajl-card-bg: rgba(38, 55, 60, 0.75);
    --ajl-card-border: rgba(217, 165, 143, 0.25);
    --font-heading: 'Matroska', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    background: var(--ajl-bg-dark);
    color: var(--ajl-text);
    font-family: var(--font-body);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   HEADER SECTION
   ========================================= */

.header-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background: var(--ajl-bg-dark);
}

.header-section .desktop-header {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.header-section .mobile-header {
    display: none;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.header-section .gradient-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #b88a61, #f2d3b2, #9c7253);
}

/* =========================================
   SHARED BACKGROUND & OVERLAY
   ========================================= */

.shared-bg {
    position: relative;
    width: 100%;
    background-color: var(--ajl-bg); 
    overflow: hidden;
}

.shared-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(
            to bottom,
            rgba(12, 43, 53, 0.72) 0%,
            rgba(8, 30, 37, 0.100) 30%,
            rgba(6, 24, 30, 0.85) 100%
        ),
        url("../../img/ajl40/background.png");
    background-position: right top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    pointer-events: none;
}

.shared-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Floating Live Badge Widget (Desktop) */
.ajl-live-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.ajl-live-badge:hover {
    transform: translateY(-4px);
}

.badge-trophy-img {
    width: 40px;
    height: auto;
    display: block;
    margin-bottom: -18px;
    position: relative;
    z-index: 2;
}

.badge-circle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #CFA493;
    color: var(--ajl-dark-text);
    text-align: center;
    padding: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.badge-circle .live-icon {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    margin-top: 2px;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.badge-circle span {
    font-family: var(--font-heading);
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0.3px;
    color: var(--ajl-dark-text);
}

/* Sticky Background Side Decorations */
.bg-deco {
    position: absolute;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.bg-deco-left {
    left: 0;
    width: 262px;
    height: 232px;
    object-fit: contain;
}

.bg-deco-right {
    right: 0;
    width: 244px;
    height: 506px;
    object-fit: contain;
}

/* =========================================
   PROMOTIONAL BANNER
   ========================================= */

.ajl-promo-section {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 15px 0 20px;
}

.ajl-promo-banner {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* =========================================
   VIDEO SECTION
   ========================================= */

.ajl-video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.ajl-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 2px;
    color: #fff;
    font-family: Arial, sans-serif;
}

.ajl-video-wrapper video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.ajl-mute-toggle {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.ajl-mute-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ajl-mute-toggle i {
    font-size: 16px;
}

@media (max-width: 576px) {
    .ajl-mute-toggle {
        width: 36px;
        height: 36px;
        right: 10px;
        bottom: 10px;
    }

    .ajl-mute-toggle i {
        font-size: 14px;
    }
}

/* Keyboard focus */

.ajl-video-wrapper button:focus-visible,
.ajl-progress:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Mobile layout */

@media (max-width: 576px) {
    .ajl-video-container {
        padding: 0 12px;
    }

    .ajl-video-wrapper {
        border-radius: 4px;
    }

    .ajl-video-controls {
        padding: 20px 5px 5px;
    }

    .ajl-controls-bottom {
        gap: 5px;
    }

    .ajl-controls-left,
    .ajl-controls-right {
        gap: 2px;
    }

    .ajl-play-btn {
        width: 42px;
        height: 32px;
    }

    .ajl-control-group,
    .ajl-controls-right {
        padding: 2px 4px;
        gap: 2px;
        min-height: 32px;
    }

    .ajl-icon-btn {
        width: 25px;
        height: 28px;
    }

    .ajl-icon-btn svg {
        width: 15px;
        height: 15px;
    }

    .ajl-time {
        font-size: 9px;
        gap: 2px;
    }

    .ajl-speed-btn {
        width: 28px;
        font-size: 10px;
    }

    #ajlBackBtn,
    #ajlForwardBtn,
    #ajlSettingsBtn {
        display: none;
    }
}

/* =========================================
   TENTANG SECTION
   ========================================= */

.tentang-section {
    padding: 30px 20px;
    text-align: center;
}

.tentang-container {
    max-width: 820px;
    margin: 0 auto;
}

.tentang-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    color: #CFA493;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 0%;
    line-height: 100%;
}

.tentang-heading::before,
.tentang-heading::after {
    content: "";
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: #CFA493;
}

.tentang-paragraph {
    margin: 0 auto;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 1px;
    text-align: center;
}

/* =========================================
   WINNERS SECTION
   ========================================= */

.ajl-winners-section {
    position: relative;
    padding: 40px 0;
}

.ajl-winners-container {
    width: 100%;
    max-width: 860px;
    padding: 0 20px;
    margin: 0 auto;
}

.ajl-winners-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #CFA493;
    font-family: var(--font-heading);
    font-size: clamp(16px, 2vw, 22px);
    letter-spacing: 0px;
    text-align: center;
}

.ajl-winners-heading::before,
.ajl-winners-heading::after {
    content: "";
    flex: 1;
    max-width: 160px;
    height: 1px;
    background: #CFA493;
}

/* Main Champion Winner Card */
.ajl-winner-card-main {
    width: 100%;
    padding: 28px 40px;
    margin-bottom: 24px;
    border-radius: 16px;
    background: linear-gradient(115.86deg, rgba(87, 56, 27, 0.4) 0%, rgba(176, 139, 102, 0.4) 153.31%);
    border: 1px solid var(--ajl-card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ajl-main-winner-title {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(16px, 3vw, 24px);
    letter-spacing: 0%;
    text-align: center;
}

.ajl-main-winner-title strong {
    color: #CFA493;
}

.ajl-main-winner-title-mobile {
    display: none;
}

.ajl-main-winner-category-mobile {
    display: none;
}

/* Winner Grid */
.ajl-winners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ajl-winner-card {
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(115.86deg, rgba(87, 56, 27, 0.4) 0%, rgba(176, 139, 102, 0.4) 153.31%);
    border: 1px solid var(--ajl-card-border);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
}

.ajl-award-title {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(16px, 2vw, 22px);
    letter-spacing: 0%;
    text-align: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 55px;
    margin-bottom: auto;
}

.ajl-award-category {
    margin: 4px 0 16px;
    color: #CFA493;
    font-family: var(--font-heading);
    font-size: clamp(13px, 1.5vw, 17px);
    letter-spacing: 0%;
    text-align: center;
    display: flex;
    justify-content: center;
    min-height: 0px;
    margin-bottom: auto;
}

/* Key-Value Rows */
.ajl-winner-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.ajl-award-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    background: #CFA493;
    color: var(--ajl-dark-text);
    font-family: var(--font-body);
    line-height: 100%;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
}

.ajl-winner-name {
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
}

.ajl-winner-card-main .ajl-winner-row {
    grid-template-columns: 165px minmax(0, 1fr);
    gap: 24px;
    margin-top: 14px;
}

.ajl-winner-card-main .ajl-award-label {
    height: 44px;
    font-size: 12px;
    border-radius: 12px;
}

.ajl-winner-card-main .ajl-winner-name {
    font-size: 14px;
}

/* =========================================
   FINALIS SECTION (MATCHING DESIGN REFERENCE)
   ========================================= */

.ajl-finalis-section {
    padding: 40px 0 50px;
    width: 100%;
}

.ajl-finalis-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.ajl-finalis-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    color: #CFA493;
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.2vw, 24px);
    letter-spacing: 2px;
    text-align: center;
}

.ajl-finalis-heading::before,
.ajl-finalis-heading::after {
    content: "";
    flex: 1;
    max-width: 360px;
    height: 1px;
    background: #CFA493;
}

/* 5-Column Grid Layout */
.ajl-finalis-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    width: 100%;
    align-items: stretch;
}

/* Card Outer Container */
.finalis-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #CFA493;
    color: var(--ajl-dark-text);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finalis-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Vertical Poster Image Ratio (4:5) */
.finalis-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #041b22;
}

.finalis-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Body Info Padding & Typography */
.finalis-info {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

/* Song Title (Centered, Bold Heading) */
.finalis-title {
    margin: 0 0 6px 0;
    font-family: var(--font-heading);
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--ajl-dark-text);
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    min-height: 32px; /* Helps keep title height aligned across all cards */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Metadata Text Rows (Left-aligned as in reference image) */
.finalis-info p {
    margin: 0 0 3px 0;
    font-family: var(--font-body);
    font-size: clamp(10px, 0.8vw, 11px);
    line-height: 1.3;
    font-weight: 500;
    color: var(--ajl-dark-text);
    text-align: left;
}

.finalis-info p strong {
    font-weight: 700;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #CFA493;
    color: var(--ajl-dark-text);
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

/* =========================================
   FOOTER SECTION
   ========================================= */

.ajl-footer {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #123d47;
}

.ajl-footer .footer-gradient-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #b88a61, #f2d3b2, #9c7253);
}

.ajl-footer .footer-content {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.ajl-footer p {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1024px) {
    .ajl-finalis-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 1200px) {
    .bg-deco-left {
        width: 180px;
        height: auto;
    }
    .bg-deco-right {
        width: 180px;
        height: auto;
    }
}

@media (max-width: 991px) {
    .ajl-finalis-grid {
        grid-auto-columns: calc((100% - (16px * 2)) / 3); /* Display 3 cards on tablet */
    }
}

@media (max-width: 768px) {
    .header-section .desktop-header { 
        display: none !important; 
    }
    .header-section .mobile-header { 
        display: block !important; 
    }
}

/* MOBILE STYLES (< 768px) */
@media (max-width: 767px) {

    /* Section Padding for Mobile */
    .shared-container {
        padding: 20px 0; /* Clear left/right padding so slider overflow extends seamlessly */
    }

    .ajl-promo-section,
    .tentang-section,
    .ajl-winners-section {
        padding: 20px 20px;
    }

    .ajl-finalis-section {
        padding: 20px 0;
    }

    .ajl-finalis-container {
        padding: 0;
    }

    .ajl-finalis-heading {
        padding: 0 20px;
    }

    /* Allow horizontal overflow past screen bounds */
    .shared-bg,
    .shared-container,
    .ajl-finalis-carousel-wrapper {
        overflow: visible;
    }

    /* Side Background Decorations */
    .bg-deco {
        display: block !important;
        position: absolute;
        bottom: 0;
        pointer-events: none;
        z-index: 1;
    }

    .bg-deco-left {
        left: -20px;
        width: 140px;
        height: auto;
    }

    .bg-deco-right {
        right: -15px;
        width: 130px;
        height: auto;
    }

    /* Mobile Live Badge */
    .ajl-live-badge {
        position: fixed;
        bottom: 10px;
        right: 20px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
    }

    /* Winner Cards Stacked Layout */
    .ajl-winners-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ajl-winner-card-main,
    .ajl-winner-card {
        padding: 24px 18px;
        text-align: center;
    }

    .ajl-main-winner-title {
        display: none;
    }

    .ajl-main-winner-title-mobile {
        display: block;
        font-family: var(--font-heading);
        font-size: clamp(20px, 3vw, 28px);
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ajl-main-winner-category-mobile {
        display: block;
        font-family: var(--font-heading);
        font-size: clamp(16px, 2vw, 20px);
        color: #CFA493;
    }

    .ajl-award-title {
        min-height: 0px;
        margin-bottom: 12px;
    }

    .ajl-winner-row,
    .ajl-winner-card-main .ajl-winner-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }

    .ajl-award-label,
    .ajl-winner-card-main .ajl-award-label {
        width: 100%;
        max-width: 260px;
        height: 36px;
        margin: 0 auto;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .ajl-winner-name,
    .ajl-winner-card-main .ajl-winner-name {
        text-align: center;
        font-size: 12px;
        line-height: 1.4;
        color: #ffffff;
        padding: 0 20px;
    }

    /* MOBILE FINALIS SECTION */

.ajl-finalis-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 320px;
        margin: 0 auto;
    }

    .finalis-info {
        padding: 12px 14px 16px;
    }

    .finalis-title {
        font-size: 16px;
        min-height: auto;
    }

    .finalis-info p {
        font-size: 12px;
        line-height: 1.4;
    }
}