.ipl-practice-page .page-hero-section { padding: clamp(3rem, 6vw, 5rem) 0; }
.ipl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 2rem; align-items: center; }
.ipl-hero .page-header { max-width: 860px; }
.ipl-hero .page-header h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: 0; }
.ipl-hero-panel { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem; border: 1px solid var(--tn-surface-border); border-radius: 24px; background: rgba(15, 23, 42, .72); overflow: hidden; }
.summary-card { position: relative; min-height: 120px; padding: 1rem; border: 1px solid rgba(148, 163, 184, .18); border-radius: 16px; background: rgba(15, 21, 32, .82); }
.summary-card strong { display: block; font-size: 1.8rem; color: #f8fafc; }
.summary-card span { color: var(--tn-muted); font-weight: 700; }
.cricket-orbit { position: absolute; inset: auto -20px -50px auto; width: 180px; height: 180px; border: 1px dashed rgba(16,185,129,.45); border-radius: 999px; opacity: .55; }
.cricket-orbit span { position: absolute; width: 18px; height: 18px; border-radius: 999px; background: #f97316; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.cricket-orbit span:nth-child(1) { top: 18px; left: 70px; }
.cricket-orbit span:nth-child(2) { top: 95px; right: 10px; }
.cricket-orbit span:nth-child(3) { bottom: 18px; left: 38px; }
.ipl-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.ipl-reader-layout { display: grid; grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.ipl-topic-sidebar { top: 88px; }
.ipl-topic-nav a { grid-template-columns: minmax(0, 1fr); text-decoration: none; }
.ipl-topic-nav strong { font-size: .92rem; }
.ipl-reader-main { min-width: 0; display: grid; gap: 1.2rem; }
.ipl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.ipl-card { padding: 1.25rem; border-radius: 18px; }
.ipl-card--wide { grid-column: 1 / -1; }
.ipl-card h3 { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: 0; }
.ipl-card p, .ipl-card li, .status-text { color: var(--tn-muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; align-items: end; }
.field { display: grid; gap: .35rem; }
.field label, .choice-label, .api-meta label { color: #dbeafe; font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea, .api-select {
  width: 100%; min-height: 44px; border: 1px solid rgba(148,163,184,.28); border-radius: 10px; background: rgba(2,6,23,.72); color: #f8fafc; padding: .65rem .75rem;
}
.field input:focus, .field select:focus, button:focus-visible, .team-card:focus-within, .flip-card:focus-visible, .record-badge:focus-visible { outline: 3px solid rgba(56,189,248,.75); outline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .9rem; }
.date-form-grid { position: relative; }
.date-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.calendar-trigger { min-height: 44px; border: 1px solid rgba(56,189,248,.42); border-radius: 10px; background: rgba(8,47,73,.9); color: #e0f2fe; padding: .55rem .8rem; cursor: pointer; font-weight: 800; }
.ipl-calendar { position: relative; z-index: 30; width: min(100%, 420px); margin: .9rem 0; padding: .85rem; border: 1px solid rgba(56,189,248,.34); border-radius: 14px; background: #0f172a; box-shadow: 0 18px 44px rgba(2,6,23,.45); }
.calendar-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; margin-bottom: .75rem; }
.calendar-header strong { text-align: center; color: #f8fafc; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.calendar-weekdays span { text-align: center; color: #93c5fd; font-size: .78rem; font-weight: 900; }
.calendar-empty, .calendar-day { min-height: 42px; border-radius: 10px; }
.calendar-day { border: 1px solid rgba(148,163,184,.2); background: rgba(2,6,23,.62); color: #dbeafe; cursor: pointer; font-weight: 800; }
.calendar-day:hover { border-color: #38bdf8; background: rgba(56,189,248,.16); color: #fff; }
.calendar-day.has-match { border-color: rgba(34,197,94,.55); background: rgba(22,101,52,.3); }
.calendar-day.is-selected { border-color: #facc15; background: rgba(250,204,21,.2); color: #fef9c3; }
.calendar-help { margin: .75rem 0 0; color: #bfdbfe; font-size: .86rem; }
.compact-btn, .icon-button {
  min-height: 40px; border: 1px solid rgba(148,163,184,.28); border-radius: 10px; background: rgba(15,23,42,.9); color: #e2e8f0; padding: .5rem .75rem; cursor: pointer;
}
.compact-btn:hover, .icon-button:hover { border-color: var(--tn-accent-light); color: #fff; }
.result-count, .selected-count, .page-status { color: #bfdbfe; font-weight: 800; margin: .75rem 0; }
.loading-spinner { display: inline-grid; place-items: center; gap: .5rem; color: #bfdbfe; }
.loading-spinner::before { content: ""; width: 22px; height: 22px; border: 3px solid rgba(148,163,184,.3); border-top-color: #38bdf8; border-radius: 999px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-wrap { overflow-x: auto; border: 1px solid rgba(148,163,184,.2); border-radius: 14px; }
.ipl-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ipl-table th, .ipl-table td { padding: .75rem; border-bottom: 1px solid rgba(148,163,184,.16); text-align: left; vertical-align: top; }
.ipl-table th { color: #dbeafe; background: rgba(99,102,241,.12); white-space: nowrap; }
.ipl-table tbody tr:hover { background: rgba(56,189,248,.08); }
.sortable-header { all: unset; cursor: pointer; color: #dbeafe; font-weight: 800; }
.pagination-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-top: .85rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem; }
.team-card { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center; padding: .85rem; border: 1px solid rgba(148,163,184,.2); border-radius: 14px; background: rgba(15,23,42,.72); cursor: pointer; }
.team-card.is-selected { border-color: #22c55e; background: rgba(16,185,129,.12); }
.team-code { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: rgba(56,189,248,.14); color: #e0f2fe; font-weight: 900; }
.team-card input { width: 20px; height: 20px; }
.details-row td { background: rgba(15,23,42,.94); color: #cbd5e1; }
.tab-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tab-button[aria-selected="true"] { background: rgba(99,102,241,.28); border-color: var(--tn-accent-light); color: white; }
.leaderboard-list, .feed-list, .favourites-list, .suggestions-list { display: grid; gap: .6rem; }
.leaderboard-item, .feed-item, .favourite-row, .suggestion-option, .match-row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem; border: 1px solid rgba(148,163,184,.16); border-radius: 12px; background: rgba(2,6,23,.38); }
.skeleton { min-height: 104px; border-radius: 14px; background: linear-gradient(90deg, rgba(148,163,184,.1), rgba(148,163,184,.22), rgba(148,163,184,.1)); background-size: 220% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.autosuggest { position: relative; }
.suggestions-list { position: absolute; z-index: 40; top: calc(100% + .25rem); left: 0; right: 0; padding: .5rem; border: 1px solid rgba(148,163,184,.28); border-radius: 12px; background: #0f172a; max-height: 280px; overflow: auto; }
.suggestion-option { cursor: pointer; }
.suggestion-option[aria-selected="true"], .suggestion-option:hover { background: rgba(56,189,248,.14); }
mark { background: rgba(245,158,11,.28); color: #fde68a; border-radius: 4px; padding: 0 .12rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .65rem; }
.choice-label { display: flex; gap: .55rem; align-items: center; padding: .7rem; border: 1px solid rgba(148,163,184,.18); border-radius: 12px; background: rgba(15,23,42,.62); }
.error-text { color: #fecaca; font-weight: 700; }
.success-text { color: #bbf7d0; font-weight: 700; }
.iframe-shell iframe { width: 100%; min-height: 260px; border: 1px solid rgba(148,163,184,.24); border-radius: 14px; background: #0f172a; }
.shadow-host-wrap { padding: .8rem; border: 1px dashed rgba(56,189,248,.45); border-radius: 14px; }
.drag-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.player-pool, .playing-xi { min-height: 260px; padding: .75rem; border: 1px dashed rgba(148,163,184,.3); border-radius: 14px; background: rgba(2,6,23,.32); }
.draggable-player { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: .45rem 0; padding: .6rem; border: 1px solid rgba(148,163,184,.18); border-radius: 10px; background: rgba(15,23,42,.8); cursor: grab; }
.draggable-player span { display: grid; gap: .15rem; }
.draggable-player small { color: #bfdbfe; font-weight: 800; }
.selected-xi-player { cursor: default; }
.captain-choice { display: inline-flex; align-items: center; gap: .35rem; color: #fde68a; font-size: .88rem; font-weight: 800; white-space: nowrap; }
.tooltip-wrap { display: flex; flex-wrap: wrap; gap: .75rem; }
.record-badge { position: relative; border: 1px solid rgba(245,158,11,.4); border-radius: 999px; background: rgba(245,158,11,.12); color: #fde68a; padding: .6rem .85rem; cursor: help; }
.record-badge [role="tooltip"] { position: absolute; left: 0; top: calc(100% + .45rem); width: 240px; padding: .65rem; border-radius: 10px; background: #020617; color: #e2e8f0; border: 1px solid rgba(148,163,184,.3); visibility: hidden; opacity: 0; transition: opacity .15s; z-index: 20; }
.record-badge:hover [role="tooltip"], .record-badge:focus [role="tooltip"] { visibility: visible; opacity: 1; }
.upload-zone { border: 1px dashed rgba(56,189,248,.55); border-radius: 14px; padding: 1rem; background: rgba(56,189,248,.06); }
.api-response { max-height: 360px; overflow: auto; padding: .85rem; border-radius: 12px; background: #020617; color: #c4b5fd; white-space: pre-wrap; }
.report-panel { display: grid; gap: .85rem; padding: .85rem; border: 1px solid rgba(34,197,94,.28); border-radius: 14px; background: rgba(6,78,59,.14); }
.report-panel h4 { margin: 0; color: #dcfce7; }
.report-table { min-width: 620px; }
.report-list { display: grid; gap: .55rem; }
.unstable-box { border: 1px solid rgba(239,68,68,.45); background: rgba(127,29,29,.16); }
.nested-box div { padding: .2rem; border: 1px solid rgba(148,163,184,.1); border-radius: 8px; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem; perspective: 1200px; }
.flip-card { position: relative; min-height: 170px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .4s ease; }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: grid; align-content: center; gap: .4rem; padding: 1rem; border: 1px solid rgba(148,163,184,.2); border-radius: 14px; background: rgba(15,23,42,.88); backface-visibility: hidden; text-align: left; }
.flip-back { transform: rotateY(180deg); background: rgba(30,41,59,.95); }
.quiz-options { display: grid; gap: .5rem; margin: 1rem 0; }
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.challenge-card { padding: 1rem; }
.challenge-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; letter-spacing: 0; }
.difficulty { display: inline-flex; width: fit-content; border-radius: 999px; padding: .2rem .55rem; font-size: .78rem; font-weight: 900; background: rgba(99,102,241,.18); color: #c7d2fe; }
.starter-panel { display: grid; grid-template-columns: 1fr minmax(260px, .6fr); gap: 1.25rem; padding: 1.25rem; }
.plain-task-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .45rem .9rem; color: #cbd5e1; padding-left: 1.2rem; }
.copy-url-box { display: grid; align-content: start; gap: .6rem; }
.copy-url-box output { overflow-wrap: anywhere; padding: .7rem; border: 1px solid rgba(148,163,184,.2); border-radius: 10px; color: #bfdbfe; }
.source-note { max-width: none; padding: 1rem; border-top: 1px solid rgba(148,163,184,.18); color: #cbd5e1; }
.source-note a { color: #93c5fd; text-decoration: underline; }
.ipl-modal { position: fixed; inset: 0; z-index: 500; display: none; }
.ipl-modal.is-open { display: block; }
.ipl-modal__overlay { position: absolute; inset: 0; background: rgba(2,6,23,.72); }
.ipl-modal__panel { position: relative; z-index: 1; width: min(680px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; margin: 1rem auto; border: 1px solid rgba(148,163,184,.28); border-radius: 18px; background: #111827; box-shadow: var(--tn-shadow-lg); }
.ipl-modal__header, .ipl-modal__footer { display: flex; justify-content: space-between; gap: .8rem; align-items: center; padding: 1rem; border-bottom: 1px solid rgba(148,163,184,.16); }
.ipl-modal__footer { border-top: 1px solid rgba(148,163,184,.16); border-bottom: 0; }
.ipl-modal__body { padding: 1rem; }
.toast-region { position: fixed; z-index: 600; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; }
.toast { padding: .8rem 1rem; border-radius: 12px; background: #0f172a; border: 1px solid rgba(56,189,248,.4); color: #e0f2fe; box-shadow: var(--tn-shadow); }
.mobile-comparison-cards { display: none; }
@media (max-width: 900px) {
  .ipl-hero-grid, .ipl-reader-layout, .ipl-grid, .form-grid, .drag-layout, .starter-panel, .compare-cards { grid-template-columns: 1fr; }
  .ipl-hero-panel { grid-template-columns: 1fr 1fr; }
  .ipl-topic-sidebar { position: static; max-height: none; }
  .ipl-topic-nav { max-height: 360px; overflow: auto; }
}
@media (max-width: 640px) {
  .ipl-hero-panel, .choice-grid { grid-template-columns: 1fr; }
  .date-input-wrap { grid-template-columns: 1fr; }
  .desktop-comparison { display: none; }
  .mobile-comparison-cards { display: grid; gap: .75rem; }
  .leaderboard-item, .feed-item, .favourite-row, .suggestion-option, .match-row { flex-direction: column; }
  .draggable-player { align-items: flex-start; flex-direction: column; }
  .captain-choice { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
