.ct-layout {
  grid-template-columns: 236px 1fr;
}

.ct-main {
  padding: 0 0 48px;
  max-width: none;
  background: #101820;
}

.ct-hero {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  background: #0a1018;
}

.ct-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
}

.ct-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 24px;
  align-items: end;
  padding: 24px;
  min-height: 320px;
}

.ct-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.ct-player-shell {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  transition: max-width 0.25s ease, transform 0.25s ease;
}

.ct-player-shell.is-compact {
  max-width: 320px;
}

.ct-player-shell.is-compact .ct-video-wrapper {
  border-radius: 10px;
}

.ct-video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #243041;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.ct-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #000;
}

.ct-pause-overlay {
  display: none !important;
}

.ct-video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
}

.ct-video-controls-left,
.ct-video-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ct-ctrl-btn {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.ct-ctrl-btn.ct-ctrl-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.ct-ctrl-btn:hover {
  background: rgba(136, 108, 255, 0.35);
}

.ct-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.ct-volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ct-volume-slider {
  width: 72px;
  accent-color: #886cff;
}

.ct-video-wrapper.is-fullscreen {
  border-radius: 0;
}

.ct-video-wrapper.is-fullscreen .ct-video {
  height: 100vh;
  aspect-ratio: auto;
}

.ct-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ct-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: ctPulse 1.6s infinite;
}

@keyframes ctPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 59, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); }
}

.ct-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.ct-hero-sub {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
}

.ct-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
}

.ct-evolution {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ct-players {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ct-players img {
  width: 18px;
  height: 18px;
}

.ct-tabs {
  display: inline-flex;
  gap: 8px;
  margin-top: auto;
}

.ct-tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s;
}

.ct-tab.is-active {
  background: #886cff;
  color: #fff;
}

.ct-refresh-btn,
.ct-duration-btn {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ct-spin-strip-wrap {
  background: #151d27;
  border-top: 1px solid #243041;
  padding: 8px 12px 10px;
  overflow: hidden;
}

.ct-spin-strip-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ct-spin-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  margin-bottom: -20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ct-spin-strip::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

.ct-spin-strip::-webkit-scrollbar-thumb,
.ct-spin-strip::-webkit-scrollbar-track {
  display: none !important;
  background: transparent !important;
}

.ct-spin-strip-item {
  flex: 0 0 auto;
}

.ct-spin-strip-item img {
  display: block;
  height: 40px;
  width: auto;
}

.ct-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #101820;
}

.ct-duration-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 220px;
  background: #1a2430;
  border-color: #2a3644;
}

.ct-duration-btn span {
  font-size: 13px;
  font-weight: 600;
  color: #d0ff00;
}

.ct-duration-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 24px;
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #2a3644;
  background: #1a2430;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ct-duration-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ct-duration-menu button.is-active,
.ct-duration-menu button:hover {
  background: rgba(136, 108, 255, 0.2);
}

.ct-panel {
  margin: 0 24px 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #243041;
  background: #151d27;
}

.ct-wheel-panel {
  background: #151d27;
  border-color: #243041;
  color: #fff;
}

.ct-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ct-panel-title {
  font-size: 18px;
  font-weight: 800;
}

.ct-wheel-panel .ct-panel-title {
  color: #fff;
}

.ct-panel-meta {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.65;
}

.ct-wheel-panel .ct-panel-meta {
  color: rgba(255, 255, 255, 0.55);
}

.ct-panel-head-split {
  align-items: center;
}

.ct-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ct-kpi {
  padding: 12px 14px;
  border-radius: 10px;
  background: #1a2430;
  border: 1px solid #243041;
}

.ct-kpi span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.ct-kpi strong {
  font-size: 22px;
  font-weight: 800;
  color: #d0ff00;
}

.ct-filter-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.ct-filter-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ct-filter-slider {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #374151;
  transition: background 0.2s;
}

.ct-filter-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.ct-filter-switch input:checked + .ct-filter-slider {
  background: #886cff;
}

.ct-filter-switch input:checked + .ct-filter-slider::after {
  transform: translateX(14px);
}

.ct-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.ct-clip-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(136, 108, 255, 0.15);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ct-clip-link:hover {
  background: rgba(136, 108, 255, 0.28);
  color: #fff;
}

.ct-panel-icon {
  width: 24px;
  height: auto;
}

.ct-wheel-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.ct-wheel-card {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: #1a2430;
  border: 1px solid #243041;
  min-height: 148px;
}

.ct-wheel-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.ct-wheel-dev {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
}

.ct-wheel-dev.pos { color: #059669; }
.ct-wheel-dev.neg { color: #dc2626; }

.ct-wheel-count {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 4px;
}

.ct-wheel-since {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.ct-expected-label {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #374151;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.ct-expected-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.ct-expected-cell {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.ct-expected-cell strong {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.ct-table-wrap {
  overflow-x: auto;
}

.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ct-table th,
.ct-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #243041;
  text-align: left;
  vertical-align: middle;
}

.ct-table th {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ct-wheel-panel .ct-table th,
.ct-wheel-panel .ct-table td {
  border-color: #243041;
}

.ct-table td img {
  height: 28px;
  width: auto;
}

.ct-slot-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #243041;
  font-size: 12px;
  font-weight: 800;
}

.ct-slot-tag.lost {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

.ct-topslot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ct-topslot-card {
  padding: 14px;
  border-radius: 12px;
  background: #1a2430;
  border: 1px solid #243041;
  text-align: center;
}

.ct-topslot-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 8px;
}

.ct-topslot-pct {
  font-size: 24px;
  font-weight: 800;
  color: #d0ff00;
}

.ct-topslot-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.ct-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 24px 18px;
}

.ct-two-col .ct-panel {
  margin: 0;
}

.ct-bet-panel {
  padding: 0;
  overflow: hidden;
}

.ct-bet-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: none;
  background: #886cff;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.ct-bet-header-title {
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.65);
}

.ct-bet-header-stats {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
}

.ct-bet-rtp-label,
.ct-bet-spin-label {
  font-weight: 600;
}

.ct-bet-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-135deg);
  transition: transform 0.2s;
}

.ct-bet-header.is-collapsed .ct-bet-chevron {
  transform: rotate(45deg);
}

.ct-bet-body {
  padding: 16px 18px 18px;
}

.ct-bet-body[hidden] {
  display: none;
}

.ct-bet-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ct-bet-stat {
  padding: 12px;
  border-radius: 10px;
  background: #1a2430;
  border: 1px solid #243041;
}

.ct-bet-stat label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.ct-bet-stat strong {
  font-size: 20px;
  font-weight: 800;
}

.ct-bet-stat strong.pos { color: #34d399; }
.ct-bet-stat strong.neg { color: #f87171; }

.ct-bet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ct-bet-card {
  padding: 12px;
  border-radius: 10px;
  background: #1a2430;
  border: 1px solid #243041;
}

.ct-bet-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 8px;
}

.ct-bet-card .pct {
  font-size: 18px;
  font-weight: 800;
}

.ct-bet-card .pnl.pos { color: #34d399; }
.ct-bet-card .pnl.neg { color: #f87171; }

.ct-disclaimer {
  margin: 0 24px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.ct-disclaimer a {
  color: #886cff;
}

.ct-clip-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ct-clip-modal[hidden] {
  display: none;
}

.ct-clip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.ct-clip-dialog {
  position: relative;
  width: min(920px, 100%);
  background: #151d27;
  border: 1px solid #243041;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.ct-clip-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #243041;
}

.ct-clip-dialog-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.ct-clip-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ct-clip-player-wrap {
  background: #000;
}

.ct-clip-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.ct-clip-error {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

.ct-clip-link {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 1200px) {
  .ct-wheel-grid,
  .ct-expected-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ct-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ct-layout {
    grid-template-columns: 1fr;
  }

  .ct-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ct-player-shell,
  .ct-player-shell.is-compact {
    max-width: none;
    justify-self: stretch;
  }

  .ct-wheel-grid,
  .ct-expected-row,
  .ct-topslot-grid,
  .ct-bet-summary,
  .ct-bet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ct-toolbar,
  .ct-panel,
  .ct-two-col,
  .ct-disclaimer {
    margin-left: 12px;
    margin-right: 12px;
  }

  .ct-hero-inner {
    padding: 14px;
  }
}
