/* --- UNIVERSAL RESET (Penting untuk susun atur responsif) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Amellianah';
    src: url('Amellianah.otf') format('opentype'); 
}

@font-face {
    font-family: 'Honey Salt';
    src: url('Honey Salt.otf') format('opentype');
}

/* --- Tema Kegelapan & Konsert --- */
body {
    font-family: 'Amellianah';
    font-size: 24px; /* Dikurangkan sedikit dari 32px supaya teks biasa tidak terlalu besar pada peranti kecil */
    background: black;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px 0; /* Memberi ruang atas bawah pada skrin telefon */
}

.container {
    width: 95%; /* Ditukar dari 90% ke 95% untuk maksimumkan ruang telefon */
    max-width: 650px;
    text-align: center;
    padding: 20px 15px; /* Kurangkan padding desktop */
}

h1 {
    font-family: 'Amellianah';
    color: yellow;
    font-size: 100px; /* Saiz maksimum untuk desktop */
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    width: 100%;
    word-wrap: break-word; /* Memastikan teks panjang pecah ke bawah dan tidak melimpah keluar */
}

a {
    font-family: 'Honey Salt';
    align-items: center;
    font-size: 14px;
    color: #00FFFF;
}

a:hover {
    color: white;
}

a:visited {
    color: #39FF14;
}

/* --- PEMASA COUNTDOWN --- */
.countdown-box {
    font-family: 'Honey Salt';
    display: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: hotpink;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

/* --- KAUNTER TIKET (BORANG) --- */
.ticket-counter {
    background: black;
    font-family: 'Honey Salt';
    font-size: 22px;
    padding: 25px; /* Kurangkan sedikit dari 35px supaya muat skrin kecil */
    border-radius: 20px;
    border: 5px dotted hotpink; /* Ditukar dari 7px ke 5px untuk kekemasan telefon */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
}

input[type="text"] {
    width: 90%; /* Besarkan sedikit kawasan input untuk jari pengguna phone */
    padding: 14px 20px;
    margin: 20px 0;
    border: 2px solid #333;
    background: #161622;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

input[type="text"]:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.btn {
    background: #FF10F0;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
    text-transform: uppercase;
    max-width: 100%;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.6);
}

/* --- DESIGN TIKET KERTAS TEBAL --- */
#ticketWrapper {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
}

.ticket-card {
    background: #F4EBD0 ;
    color: #111116;
    padding: 20px; /* Dikurangkan dari 30px supaya teks tiket tidak terpotong */
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    text-align: left;
    position: relative;
    border: 1px solid #ddd;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
    background-size: 4px 4px;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 8px; /* Nipiskan sedikit border tepi */
    background: linear-gradient(#ff007f, #7928ca);
}

.ticket-header {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 5px;
    padding-left: 10px;
}

.ticket-event {
    font-size: 22px; /* Dikecilkan dari 26px supaya nama event muat dalam phone */
    font-weight: 900;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 15px 0;
    padding-left: 10px;
    line-height: 1.1;
}

.ticket-body {
    border-top: 2px dashed #ccc;
    padding: 15px 0 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap; /* Membolehkan info turun bawah jika skrin terlalu sempit */
    gap: 10px;
}

.ticket-info {
    flex: 1;
    min-width: 120px;
}

.ticket-info label {
    font-size: 10px;
    text-transform: uppercase;
    color: #888;
    display: block;
    margin-bottom: 2px;
}

.ticket-info .val {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    font-family: monospace;
}

.barcode {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px; /* Kurangkan jarak bar kod supaya muat */
    color: #444;
    border-left: 3px solid #111;
    padding-left: 8px;
    height: 40px;
    display: flex;
    align-items: center;
}

.download-btn {
    background: #222;
    margin-top: 15px;
    font-size: 14px;
    padding: 10px 20px;
}

/* --- KAWASAN VIDEO YOUTUBE EMBED --- */
.concert-area {
    color: hotpink;
    display: none;
    margin-top: 30px;
    animation: fadeIn 1s ease-in-out;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

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

/* --- BAHAGIAN MERCHANDISE DOWNLOAD --- */
.merch-section {
    color: hotpink;
    display: none;
    margin-top: 50px;
    border-top: 1px solid #222;
    padding-top: 30px;
    animation: fadeIn 1s ease-in-out;
    width: 100%;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Auto susun mengikut lebar skrin */
    gap: 15px;
    margin-top: 15px;
}

.merch-card {
    background: black;
    padding: 15px;
    border-radius: 10px;
    border: 4px dotted #FF10F0;
    text-align: center;
}

.merch-thumb {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #888;
    background: transparent !important;
}

.merch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.merch-title {
    font-family: 'Honey Salt';
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.merch-link {
    font-family: 'Honey Salt';
    color: #00f2fe;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #00f2fe;
    padding: 5px 10px;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
}

.merch-link:hover {
    background: #00f2fe;
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   --- MEDIA QUERY UNTUK TELEFON (Skrin 600px ke bawah) ---
   ========================================================================== */
@media screen and (max-width: 600px) {
    body {
        font-size: 28px; /* Kecilkan saiz tulisan asas badan */
    }

    h1 {
        font-size: 60px; /* MENYELESAIKAN MASALAH UTAMA: h1 dikecilkan dari 120px kepada 45px supaya muat skrin phone */
        line-height: 1.1;
        letter-spacing: 1px;
    }

    .ticket-counter {
        padding: 20px 15px; /* Mengurangkan padding dalaman borang tiket */
        font-size: 18px;
    }

    input[type="text"] {
        width: 100%; /* Lebar penuh pada peranti mudah alih */
        font-size: 14px;
    }

    .ticket-card {
        padding: 15px 10px;
    }

    .ticket-event {
        font-size: 18px;
    }

    .ticket-body {
        flex-direction: column; /* Tukar susunan info tiket kepada menegak jika phone terlalu kecil */
        align-items: flex-start;
    }

    .barcode {
        border-left: none;
        border-top: 2px solid #111; /* Ubah kod bar ke bahagian bawah info */
        padding-left: 0;
        padding-top: 5px;
        width: 100%;
        margin-top: 10px;
    }
}
