@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap');

body {
    background: #000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
}

.player {
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-x: hidden;
}

.app-header {
    display: flex;
    flex-direction: column;
    min-height: 72px;
    justify-content: center;
    margin: 0 -50px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.brand-text {
    min-width: 0;
}

.brand-logo {
    width: min(100%, 431px);
    height: auto;
    max-height: 110px;
    object-fit: contain;
    background: transparent;
    flex-shrink: 0;
}

.brand-name {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
    font-family: "Marck Script", "Brush Script MT", cursive;
}

.project-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    color: #ffffff;
    font-family: "Marck Script", "Brush Script MT", cursive;
}

.show-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    word-break: break-word;
    font-family: "Pioner Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: center;
}

.entry-card,
.notice-card {
    border: 1px solid #1f1f1f;
    border-radius: 14px;
    background: #090909;
    padding: 14px;
}

.entry-help {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
}

.code-input {
    width: 100%;
    box-sizing: border-box;
    background: #101010;
    border: 1px solid #ffffff; 
    color: #ffffff;
    border-radius: 10px;
    min-height: 54px;
    padding: 10px 12px;
    font-size: 22px;
}

.entry-action {
    width: 100%;
    border: 1px solid #ffffff;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    min-height: 54px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
}

.entry-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.notice-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #ffffff;
}

.notice-card p {
    margin: 0 0 8px;
    line-height: 1.4;
    color: #ffffff;
}

.cover-wrap {
    width: 100%;
    max-width: 360px;
    margin: 8px auto 0;
}

#showCover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #111;
}

#trackTitle {
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 21px;
}

#progress {
    --progress-percent: 0%;
    width: 100%;
    margin: 4px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, #ffffff var(--progress-percent), #2f2f2f var(--progress-percent));
    outline: none;
}

#progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

#progress::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

.time {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    color: #ffffff;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.controls button {
    width: 58px;
    height: 58px;
    border: 1px solid #2e2e2e;
    border-radius: 50%;
    background: #111;
    margin: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.controls button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.controls button:active { transform: scale(0.97); }
.controls button:disabled { opacity: 0.45; cursor: not-allowed; }

.playlist-divider {
    height: 1px;
    width: 100%;
    margin: 2px 0 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.playlist-wrap h4 { margin: 4px 0; font-size: 16px; }
.playlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.playlist-item { padding: 12px 14px; border: 1px solid #2d2d2d; border-radius: 10px; cursor: pointer; color: #ffffff; }
.playlist-item.is-active { border-color: #ffffff; color: #ffffff; background: #3b3a39; }

.show-meta { margin-top: 8px; border-top: 1px solid #1f1f1f; padding-top: 12px; }
.show-meta p { margin: 0 0 8px; color: #ffffff; line-height: 1.4; }

.show-meta { border-top: 0; }

.show-meta .show-title {
    margin: 0 0 10px;
    font-size: 22px;
    text-align: left;
}

.message {
    margin: 10px 0;
    min-height: 22px;
    text-align: left;
    font-size: 15px;
    color: #ffffff;
}

.player > * {
    opacity: 1;
    transform: none;
}

.result-card {
    border-width: 1px;
}

.result-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.result-subtitle {
    margin: 10px 0 0;
    color: #ffffff;
    line-height: 1.45;
}

.result-card--success {
    border-color: #6de065;
    box-shadow: 0 0 18px rgba(68, 255, 116, 0.12) inset;
}

.result-card--fail {
    border-color: #4e2f2f;
    box-shadow: 0 0 18px rgba(255, 80, 80, 0.12) inset;
}

.tickets-grid {
    display: grid;
    gap: 12px;
}

.ticket-card {
    border: 1px solid rgba(255, 255, 255, 1);;
    border-radius: 14px;
    background:
        radial-gradient(circle at 0 50%, transparent 11px, #111 12px),
        radial-gradient(circle at 100% 50%, transparent 11px, #111 12px),
        linear-gradient(180deg, #171717, #090909);
    padding: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.ticket-card--info {
    border-style: solid;
    border-color: #2a2a2a;
}

.ticket-label {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ticket-cut {
    border-top: 1px dashed rgba(255, 255, 255, 1);
    margin: 0 -14px 12px;
}

.ticket-code {
    margin: 0 0 12px;
    font-size: 30px;
    letter-spacing: 0.06em;
    font-weight: 800;
    line-height: 1;
}

.ticket-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ticket-actions--compact {
    grid-template-columns: 1fr;
}

.ticket-btn {
    min-height: 40px;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    width: auto;
    padding: 0 14px;
}

.ticket-btn--use {
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 1));
    border-color: transparent;
    color: black;
    font-weight: 700;
}

.ticket-btn--share,
.ticket-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    color: #ffffff;
}

.ticket-empty {
    margin: 0;
    color: #ffffff;
    line-height: 1.45;
}

.shop-card {
    border-style: solid;
}

.shop-description {
    margin: 0 0 10px;
    color: #ffffff;
    line-height: 1.35;
}

.shop-price {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.shop-meta {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.compliance-card {
    border: 1px solid #2c2c2c;
    background: linear-gradient(180deg, #121212, #090909);
}

.compliance-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.compliance-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #ffffff;
}

.compliance-list a {
    color: #ffffff;
}

.shop-controls {
    display: grid;
    gap: 8px;
}

.shop-qty-stepper {
    display: inline-grid;
    grid-template-columns: 40px minmax(56px, 72px) 40px;
    align-items: center;
    gap: 6px;
}

.shop-qty-btn {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    background: #101010;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.shop-label {
    color: #ffffff;
    font-size: 14px;
}

.shop-qty {
    min-height: 44px;
    font-size: 18px;
    max-width: 72px;
    text-align: center;
    pointer-events: none;
}

.shop-buy-btn {
    width: fit-content;
}