.tour-player {
--tour-ink: #171a33;
--tour-muted: #4f536a;
--tour-accent: #4340c2;
--tour-accent-hover: #302ca8;
--tour-tint: #eeedfc;
--tour-line: #d8dae8;
--tour-stage-bg: #0b0e21;
--tour-surface: #ffffff;
--tour-surface-alt: #f8f8fc;
background: var(--tour-surface);
border: 1px solid var(--tour-line);
border-radius: 14px;
padding: 24px;
margin: 0 0 28px;
box-shadow: 0 10px 30px rgba(23, 26, 51, 0.06);
}
.tour-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 18px;
}
.tour-header-copy {
min-width: 0;
flex: 1 1 360px;
}
.tour-eyebrow {
margin: 0 0 6px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--tour-accent);
}
.tour-header h2 {
margin: 0 0 6px;
font-size: 1.55rem;
line-height: 1.25;
letter-spacing: -0.02em;
color: var(--tour-ink);
}
.tour-subtitle {
margin: 0;
color: var(--tour-muted);
font-size: 0.95rem;
max-width: none !important;
}
.tour-hero-cta {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 13px 20px;
border: 0;
border-radius: 10px;
background: var(--tour-accent);
color: #ffffff;
font-weight: 700;
font-size: 0.95rem;
line-height: 1.2;
box-shadow: 0 6px 18px rgba(67, 64, 194, 0.25);
transition: background-color 0.16s ease, transform 0.16s ease;
}
.tour-hero-cta:hover {
background: var(--tour-accent-hover);
transform: translateY(-1px);
}
.tour-hero-cta svg {
flex: none;
}
.tour-header-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.tour-download-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 16px;
border-radius: 10px;
border: 1px solid #c9cce0;
background: #ffffff;
color: var(--tour-ink);
font-weight: 650;
font-size: 0.9rem;
line-height: 1.2;
text-decoration: none;
transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.tour-download-btn:hover {
background: var(--tour-tint);
border-color: var(--tour-accent);
color: var(--tour-accent-hover);
text-decoration: none;
}
.tour-video-drawer {
margin-top: 12px;
border: 1px solid var(--tour-line);
border-radius: 10px;
background: var(--tour-surface-alt);
padding: 10px 14px;
}
.tour-video-drawer summary {
cursor: pointer;
font-size: 13px;
font-weight: 650;
color: var(--tour-accent-hover);
list-style-position: inside;
}
.tour-video-frame {
margin-top: 12px;
}
.tour-video-frame video {
display: block;
width: 100%;
height: auto;
border-radius: 8px;
background: #0b0e21;
border: 1px solid #232847;
}
.tour-video-actions {
margin: 8px 0 0;
font-size: 12.5px;
color: var(--tour-muted);
}
.tour-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 310px;
gap: 18px;
align-items: stretch;
}
.tour-stage-column {
display: flex;
flex-direction: column;
min-width: 0;
}
.tour-stage {
position: relative;
aspect-ratio: 16 / 10;
width: 100%;
overflow: hidden;
border-radius: 12px 12px 0 0;
background: var(--tour-stage-bg);
border: 1px solid #232847;
}
.tour-stage-column:has(.tour-captions[hidden]) .tour-stage {
border-radius: 12px;
}
.tour-stage-img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: top center;
transform-origin: center center;
will-change: transform;
}
.tour-player.is-playing .tour-stage-img {
animation: tour-ken-burns 18s ease-in-out infinite alternate;
}
@keyframes tour-ken-burns {
0% {
transform: scale(1) translate3d(0, 0, 0);
}
100% {
transform: scale(1.055) translate3d(-1%, -1.2%, 0);
}
}
.tour-top-meta {
position: absolute;
top: 12px;
left: 12px;
right: 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
pointer-events: none;
z-index: 3;
}
.tour-slide-pill,
.tour-counter-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 11px;
border-radius: 999px;
background: rgba(11, 14, 33, 0.84);
color: #f8f9ff;
border: 1px solid rgba(255, 255, 255, 0.2);
font-size: 12px;
font-weight: 650;
backdrop-filter: blur(4px);
}
.tour-spotlights {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 2;
}
.tour-callout {
position: absolute;
transform: translate(-50%, -50%);
display: inline-flex;
align-items: center;
gap: 7px;
padding: 5px 10px 5px 7px;
border-radius: 999px;
background: rgba(16, 20, 48, 0.92);
color: #ffffff;
border: 1px solid rgba(165, 180, 252, 0.72);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
font-size: 12px;
font-weight: 650;
white-space: nowrap;
opacity: 0;
animation: tour-callout-in 0.45s ease forwards;
}
.tour-callout:nth-child(2) {
animation-delay: 0.2s;
}
.tour-callout:nth-child(3) {
animation-delay: 0.4s;
}
.tour-callout-dot {
position: relative;
width: 10px;
height: 10px;
border-radius: 50%;
background: #6ee7b7;
flex: none;
}
.tour-callout-dot::after {
content: "";
position: absolute;
inset: -4px;
border-radius: 50%;
border: 2px solid rgba(110, 231, 183, 0.75);
animation: tour-pulse 1.9s ease-out infinite;
}
@keyframes tour-callout-in {
from {
opacity: 0;
transform: translate(-50%, -35%) scale(0.94);
}
to {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}
@keyframes tour-pulse {
0% {
transform: scale(0.8);
opacity: 0.9;
}
100% {
transform: scale(1.9);
opacity: 0;
}
}
.tour-captions {
position: static;
min-height: 5.2rem;
background: #0f1329;
border: 1px solid #232847;
border-top: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 0 0 12px 12px;
padding: 11px 14px;
color: #ffffff;
}
.tour-caption-label {
display: inline-block;
margin-right: 8px;
padding: 1px 6px;
border-radius: 4px;
background: var(--tour-accent);
color: #ffffff;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.04em;
vertical-align: 1px;
}
.tour-caption-text {
display: inline;
margin: 0 !important;
max-width: none !important;
font-size: 0.87rem;
line-height: 1.54;
color: #f4f5ff;
}
.tour-caption-word {
color: rgba(226, 230, 255, 0.78);
border-radius: 4px;
padding: 1px 2px;
margin: 0 -2px;
transition: color 0.08s ease, background-color 0.08s ease, box-shadow 0.08s ease;
}
.tour-caption-word.is-past {
color: #ffffff;
}
.tour-caption-word.is-active {
color: #ffffff;
background: rgba(99, 102, 241, 0.42);
box-shadow: inset 0 -2px 0 #6ee7b7;
}
.tour-hero-cta,
.tour-btn,
.tour-speed-btn,
.tour-chapter-btn {
cursor: pointer;
font-family: inherit;
}
.tour-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin-top: 12px;
padding: 12px 14px;
border-radius: 10px;
background: var(--tour-surface-alt);
border: 1px solid var(--tour-line);
}
.tour-btn-group {
display: inline-flex;
align-items: center;
gap: 6px;
}
.tour-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 38px;
padding: 6px 12px;
border-radius: 8px;
border: 1px solid #c9cce0;
background: #ffffff;
color: var(--tour-ink);
font-size: 13px;
font-weight: 600;
transition: background-color 0.15s ease, border-color 0.15s ease;
}
.tour-btn:hover {
background: var(--tour-tint);
border-color: var(--tour-accent);
color: var(--tour-accent-hover);
}
.tour-btn.is-primary {
background: var(--tour-accent);
border-color: var(--tour-accent);
color: #ffffff;
}
.tour-btn.is-primary:hover {
background: var(--tour-accent-hover);
border-color: var(--tour-accent-hover);
color: #ffffff;
}
.tour-btn[aria-pressed="true"]:not(.is-primary) {
background: var(--tour-tint);
border-color: var(--tour-accent);
color: var(--tour-accent-hover);
}
.tour-progress-wrap {
flex: 1 1 180px;
display: flex;
align-items: center;
gap: 10px;
min-width: 160px;
}
.tour-progress {
position: relative;
flex: 1;
height: 28px;
border-radius: 999px;
background: transparent;
cursor: pointer;
border: 0;
padding: 10px 0;
}
.tour-progress::before {
content: "";
position: absolute;
left: 0;
right: 0;
top: 50%;
height: 8px;
transform: translateY(-50%);
border-radius: 999px;
background: #dfe1ef;
}
.tour-progress-fill {
position: relative;
z-index: 1;
display: block;
height: 8px;
width: 0%;
background: var(--tour-accent);
border-radius: 999px;
transition: width 0.1s linear;
}
.tour-time {
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
font-size: 12px;
color: var(--tour-muted);
white-space: nowrap;
}
.tour-speed-group {
display: inline-flex;
align-items: center;
border: 1px solid #c9cce0;
border-radius: 8px;
background: #ffffff;
}
.tour-speed-btn {
min-height: 36px;
padding: 4px 9px;
border: 0;
border-right: 1px solid #e2e4f0;
background: transparent;
color: var(--tour-muted);
font-size: 12px;
font-weight: 650;
}
.tour-speed-btn:first-child {
border-radius: 7px 0 0 7px;
}
.tour-speed-btn:last-child {
border-right: 0;
border-radius: 0 7px 7px 0;
}
.tour-speed-btn[aria-pressed="true"] {
background: var(--tour-accent);
color: #ffffff;
}
.tour-status-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 10px;
font-size: 13px;
color: var(--tour-muted);
}
.tour-status-row a {
font-weight: 600;
text-decoration: none;
}
.tour-status-row a:hover {
text-decoration: underline;
}
.tour-chapters {
display: flex;
flex-direction: column;
background: var(--tour-surface-alt);
border: 1px solid var(--tour-line);
border-radius: 12px;
padding: 12px;
max-height: 540px;
}
.tour-chapters-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 2px 4px 10px;
border-bottom: 1px solid var(--tour-line);
margin-bottom: 8px;
}
.tour-chapters-head h3 {
margin: 0 !important;
font-size: 13px !important;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--tour-muted);
}
.tour-auto-badge {
font-size: 11px;
font-weight: 650;
color: var(--tour-accent);
background: var(--tour-tint);
padding: 2px 8px;
border-radius: 999px;
}
.tour-chapter-list {
display: flex;
flex-direction: column;
gap: 6px;
overflow-y: auto;
padding-right: 2px;
}
.tour-chapter-btn {
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
gap: 4px 10px;
width: 100%;
text-align: left;
padding: 9px 10px;
border-radius: 8px;
border: 1px solid transparent;
background: #ffffff;
color: var(--tour-ink);
transition: background-color 0.14s ease, border-color 0.14s ease;
}
.tour-chapter-btn:hover {
background: #f2f1fd;
border-color: #c8c6f2;
}
.tour-chapter-btn[aria-current="true"] {
background: var(--tour-tint);
border-color: var(--tour-accent);
}
.tour-chapter-num {
grid-row: span 2;
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 7px;
background: #eceef8;
color: var(--tour-ink);
font-size: 12px;
font-weight: 700;
align-self: center;
}
.tour-chapter-btn[aria-current="true"] .tour-chapter-num {
background: var(--tour-accent);
color: #ffffff;
}
.tour-chapter-stage {
font-size: 11px;
font-weight: 700;
color: var(--tour-accent);
line-height: 1.2;
}
.tour-chapter-title {
font-size: 13px;
font-weight: 600;
line-height: 1.3;
color: var(--tour-ink);
}
@media (max-width: 1080px) {
.tour-grid {
grid-template-columns: 1fr;
}
.tour-chapters {
max-height: none;
}
.tour-chapter-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 680px) {
.tour-player {
padding: 16px;
}
.tour-chapter-list {
grid-template-columns: 1fr;
}
.tour-callout {
display: none;
}
.tour-captions {
position: static;
border-radius: 0 0 10px 10px;
border-top: 0;
}
.tour-stage {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.tour-player.is-playing .tour-stage-img,
.tour-callout,
.tour-callout-dot::after {
animation: none !important;
opacity: 1 !important;
}
}
