
/* Optional: disable double-tap zoom and pinch zoom globally */
html, body {
    touch-action: manipulation;
    -ms-touch-action: manipulation; /* legacy */
    overscroll-behavior: none;
}
body {
    margin: 0;
    padding: 0;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 75vh;*/
    text-align: center;
}

#app {
    width: 90%;
    max-width: 420px;
}

/* Center the input and submit together */
input, button {
    display: block;
    margin: 10px auto;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    text-align: center;
}

/* Specific widths for better centering */
input {
    width: 80%;
    box-sizing: border-box;
}

button {
    width: 60%;
    background: #444;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

button {
    background: #444;
    color: #fff;
    cursor: pointer;
    /*margin-left: 3%;*/
}

button:hover {
    background: #666;
}

.icon-btn {
    width: auto;
    padding: 8px 14px;
    font-size: 22px;
    background: #222;
    border-radius: 6px;
    display: inline-block;
    margin-top: 8px;
}
.icon-btn:hover {
    background: #333;
}

#mobilePlayBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    border: 0 solid #fff;
    font-size: 32px;
    font-weight: bold;
    z-index: 1000;
    height: 110%;
    width: 110%;
}
#playerContainer { position: relative; }

.hidden {
    display: none;
}

#statusBar {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 8px;
    width: 100%;
}

/* Move countdown below for clarity */
#countdown {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 12px;
}

/* Loading indicator */
#loadingIndicator {
    text-align: center;
    font-size: 18px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}


/* Make the YouTube iframe visible and tappable on iPhone */
.yt-visible iframe {
    width: 320px;
    height: 180px;
    margin: 10px auto;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: auto; /* allows taps */
}

/* Center the video container */
#playerContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0.1;
}

#feedback {
    transition: opacity 0.3s ease;
}

.share-btn {
    background: linear-gradient(90deg, #ff9800, #ff5722);
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 16px;
    width: 100%;
}

.againBtn {
    background: linear-gradient(90deg, #0095ff, #226fff);
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 16px;
    width: 100%;
}

.share-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

#shareBox {
    width: 100%;
    height: 150px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 10px;
    font-family: monospace;
    font-size: 14px;
    resize: none;
    margin-top: 8px;
}

#copyShareBtn {
    background: #555;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 6px;
}
#copyShareBtn:hover {
    background: #777;
}
/* Difficulty selector layout */
/* Container that holds all pills in one horizontal line */
.pill-row-horizontal {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* force them to stay in one row unless screen is too small */
    padding: 0 5px;
}

/* Base pill style */
.pill {
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 16px;
    cursor: pointer;
    transform: scale(1);
    user-select: none;
    white-space: nowrap;
}

.pill:hover {
    background: #333;
}

.pill:active {
    background: #111;
}

.pill.selected {
    background: linear-gradient(135deg, #007bff, #00a6ff);
    border-color: #00a6ff;
    box-shadow: 0 0 12px rgba(0, 166, 255, 0.6);
    font-weight: bold;
}

/* Random style — same shape, just a touch bolder color */
.pill.random {
    background: #003366;
    border-color: #0066cc;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pill.random.selected {
    background: linear-gradient(135deg, #00a6ff, #0080ff);
}



/* Popup container */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Popup content */
.popup-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 500px;
    width: 90%;
    color: #fff;
    text-align: left;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    overflow-y: auto;
    max-height: 80vh;
}

.popup-content h2 {
    text-align: center;
    margin-top: 0;
    color: #00aaff;
    margin-bottom: 10px;
}

.popup-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.popup-content li {
    margin-bottom: 12px;
    line-height: 1.4em;
}

.close-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #00aaff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-btn:hover {
    background: #0090dd;
}

/* Hide helper */
.hidden {
    display: none !important;
}

/* Make the ℹ️ info button fixed in the corner */
#infoBtn {
    position: fixed;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #00aaff;
    font-size: 24px;
    cursor: pointer;
    z-index: 2000;
    transition: transform 0.2s ease, color 0.2s ease;
    width: 50px;
}

#infoBtn:hover {
    color: #66ccff;
    transform: scale(1.15);
}

#infoBtn:active {
    transform: scale(0.95);
}

/* Make Difficulty label nicer */
#categorySelect h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #00aaff;
    margin: 20px 0 1px 0;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0,170,255,0.4);
    display: inline-block;
}


/* -----------------------------
   SEO INTRO LIST PAGE
   ----------------------------- */

.introListPage body,
.introPage body {
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 20px;
    text-align: center;
}

.intro-list-container {
    max-width: 600px;
    margin: 0 auto;
}

.intro-list {
    list-style: none;
    padding: 0;
}

.intro-list li {
    margin: 10px 0;
}

.intro-list a {
    color: #00aaff;
    text-decoration: none;
    font-size: 18px;
}
.intro-list a:hover {
    text-decoration: underline;
}

/* -----------------------------
   SINGLE INTRO PAGE
   ----------------------------- */

.intro-title {
    font-size: 26px;
    font-weight: bold;
    margin-top: 20px;
}

.intro-player {
    margin: 20px auto;
    max-width: 360px;
}

.intro-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px auto;
    max-width: 320px;
}

.intro-nav a {
    color: #00ccff;
    text-decoration: none;
    font-size: 18px;
}
.intro-nav a:hover {
    text-decoration: underline;
}
.breadcrumbs {
    font-size: 26px;
    opacity: 0.7;
    margin-bottom: 12px;
}
.breadcrumbs a {
    color: #00aaff;
    text-decoration: none;
}
.imdb-icon {
    width: 26px;
    height: 26px;
    margin-left: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.7));
}
.single-nav {
    margin-top: 18px;
    text-align: center;
}

.single-nav .nav-row {
    margin: 8px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.nav-btn {
    padding: 8px 14px;
    border-radius: 6px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.nav-btn:hover {
    background: #333;
}

.out-link {
    color: #00aaff;
    text-decoration: none;
    font-size: 14px;
}

.out-link:hover {
    text-decoration: underline;
}
.all-intros-link {
    color: #00aaff;
    text-decoration: none;
    font-size: 18px;
    opacity: 0.9;
}

.all-intros-link:hover {
    text-decoration: underline;
    opacity: 1;
}
.intro-list {
    list-style: none;
    padding: 0;
}

.intro-list li {
    margin: 6px 0;
}

.intro-link {
    color: #fff;
    text-decoration: none;
}

.intro-link:hover {
    text-decoration: underline;
}

.out-link-small {
    font-size: 12px;
    margin-left: 6px;
    color: #00aaff;
    text-decoration: none;
}

.out-link-small:hover {
    text-decoration: underline;
}