:root {
  --primary-orange: #FF8C00;
  --dark-orange: #FF6B00;
  --light-orange: #FFA500;
  --yellow: #FFD700;
  --deep-blue: #1A237E;
  --dark-blue: #0D47A1;
  --light-blue: #2196F3;
  --light-cream: #FFF9E6;
  --white: #FFFFFF;
  --text-dark: #212529;
  --text-gray: #6C757D;
  --border-light: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.lottery-container {
  width: 100%;
  margin: 0;
  background: transparent;
  padding: 0;
}

.lottery-container>section {
  width: 100%;
  margin: 0;
}

.lottery-container>section:not(.hero-section):not(.main-header) {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
}

.hero-section {
  padding-bottom: 0 !important;
}

.section-spacer {
  margin-block: 1rem;
}

.main-header {
  background: var(--deep-blue);
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 100%;
}

.header-menu-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-title {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section {
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--primary-orange) 100%);
  width: 100%;
  padding: 0.8rem clamp(1rem, 3vw, 2.5rem) 0;
  text-align: center;
  margin: 0;
  box-sizing: border-box;
}

.hero-description {
  color: rgba(0, 0, 0, 0.85);
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  font-weight: 500;
}

.hero-description strong {
  color: var(--white);
  font-weight: 800;
}

.hero-search-box {
  width: clamp(280px, 80vw, 500px);
  margin: 0 auto 1rem auto;
  display: flex;
  gap: 0.3rem;
  background: var(--white);
  padding: 0.4rem;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 30px;
  outline: none;
  background: transparent;
  color: var(--text-dark);
}

.hero-search-input::placeholder {
  font-size: 0.95rem;
  color: var(--text-gray);
}

.hero-search-btn {
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--primary-orange) 100%);
  color: var(--white);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.3);
}

.hero-search-btn:hover {
  background: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.hero-schedule {
  margin-top: 0;
  margin-bottom: 0;
  background: transparent;
  padding: 0.5rem clamp(0.5rem, 2vw, 1rem) 1.5rem;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-tab {
  flex: 1;
  padding: 1.2rem 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-tab:not(.active-tab) {
  background: #FFD700 !important;
  color: #000000 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.hero-tab.active-tab {
  background: #000000 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-2px);
}

.hero-tab .tab-label {
  font-size: 1.2rem;
  font-weight: 800;
}

.hero-time-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.time-button {
  background: var(--white);
  border: none;
  border-radius: 15px;
  padding: 1.2rem 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  height: 100%;
}

.time-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.time-button .time-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1c1c1e;
  line-height: 1.1;
}

.time-button .time-text small {
  font-size: 0.8rem;
  font-weight: 700;
}

.time-button .time-label {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 600;
}

/* Mobile adjustments for time buttons */
@media (max-width: 480px) {
  .hero-time-buttons {
    gap: 0.6rem;
    padding: 0 0.2rem;
  }

  .time-button {
    padding: 1.1rem 0.3rem;
    border-radius: 12px;
  }

  .time-button .time-text {
    font-size: 1.3rem;
  }
}

.time-button.active-time {
  background: var(--white) !important;
  border: 3px solid #1e3a8a !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3) !important;
}

.time-button.active-time .time-text {
  color: #1e3a8a !important;
}

.time-button.active-time .time-label {
  color: #1e3a8a !important;
}

.hero-tabs.hidden {
  display: none !important;
}

.combo-results-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.8rem;
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}

.combo-nav-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
  font-weight: 600;
}

.combo-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35);
  background: linear-gradient(135deg, #15248a 0%, #1a36a0 100%);
}

.combo-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
}

.combo-btn-time {
  font-size: 1.3rem;
  font-weight: 700;
}

.combo-btn-period {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Mobile adjustments for search and buttons */
@media (max-width: 480px) {
  .hero-search-box {
    width: 100%;
    padding: 0.3rem;
  }

  .hero-search-input {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    display: block !important;
    /* Ensure it stays visible */
  }

  .hero-search-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .search-text {
    display: inline !important;
    /* Keep search text visible */
  }

  .hero-tabs {
    gap: 0.8rem;
  }

  .hero-tab {
    padding: 1.1rem 0.8rem;
  }

  .hero-tab .tab-label {
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .hero-tab {
    padding: 1rem 0.5rem;
  }

  .hero-tab .tab-label {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .combo-results-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    max-width: 100%;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
  }

  .combo-nav-btn {
    padding: 1rem 0.6rem;
    border-radius: 8px;
  }

  .combo-btn-time {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .combo-results-nav {
    gap: 0.5rem;
    padding: 0 0.8rem;
  }

  .combo-nav-btn {
    padding: 0.9rem 0.5rem;
    font-size: 0.9rem;
  }

  .combo-btn-time {
    font-size: 1rem;
  }

  .combo-btn-period {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .hero-description {
    font-size: 1.1rem;
  }

  .hero-section {
    padding: 0.8rem 1rem 0.6rem;
  }
}

.lottery-header {
  background: var(--deep-blue);
  padding: 1.5rem 1.5rem 2rem;
  position: relative;
}

.menu-button {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.lottery-logo {
  display: flex;
  align-items: center;
}

.logo-text h1 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

.ticket-search {
  position: relative;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-orange);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.search-btn:hover {
  background: var(--primary-orange);
}

.date-tabs {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--primary-orange) 100%);
  justify-content: center;
}

.date-tab {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 150px;
}

.date-tab:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.date-tab.active {
  background: var(--white);
  color: var(--dark-orange);
  border-color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.tab-label {
  font-size: 1.1rem;
  font-weight: 700;
}

.tab-date {
  font-size: 0.85rem;
  opacity: 0.9;
}


.time-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  background: var(--light-cream);
}

.time-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid var(--light-orange);
  box-shadow: var(--shadow);
}

.time-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--dark-orange);
}

.time-card h3 {
  color: var(--dark-orange);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.time-card h3 small {
  font-size: 1.2rem;
  font-weight: 600;
}

.time-card p {
  color: var(--text-gray);
  font-size: 1rem;
}

.results-section {
  background: var(--white);
  width: 100% !important;
  padding: 1.5rem 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
  max-width: 1000px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.results-section.result-cards-grid {
  max-width: 1000px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 3rem !important;
}

@media (max-width: 1200px) {
  .results-section.result-cards-grid {
    max-width: 95%;
  }
}

@media (max-width: 992px) {
  .results-section.result-cards-grid {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .results-section.result-cards-grid {
    max-width: 100%;
  }
}

.result-cards-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

.result-card {
  background: var(--white);
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 2rem;
  box-shadow: none !important;
  border: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100% !important;
}

.result-card.expanded .expand-icon::before {
  content: "✕";
}

.result-card:not(.expanded) .expand-icon::before {
  content: "+";
}

.result-card .result-content {
  display: none !important;
}

.result-card.expanded .result-content {
  display: block !important;
}

.result-card.expanded .result-actions {
  display: flex !important;
}

.result-card:not(.expanded) .result-actions {
  display: none !important;
}

.result-header {
  display: flex;
  align-items: center;
  background: var(--dark-blue);
  padding: 0 1rem;
  margin: 0 !important;
  border-bottom: none !important;
  gap: 0.8rem;
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  width: 100% !important;
  box-sizing: border-box;
  min-height: 60px;
}

.result-time-badge {
  background: #FFD700;
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.result-title {
  flex: 1;
  text-align: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.result-date {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.result-card .expand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.result-card.expanded .expand-icon::before {
  content: "✕" !important;
}

.result-card:not(.expanded) .expand-icon::before {
  content: "+" !important;
}

.expand-icon {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
}

.result-content {
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
  line-height: 0;
  font-size: 0;
  width: 100% !important;
  background: transparent !important;
  display: block !important;
}

.result-image {
  width: 100% !important;
  height: auto;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  object-fit: fill;
}

.result-actions {
  text-align: center;
  background: var(--dark-blue) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.view-full-btn {
  background: var(--dark-orange);
  color: var(--white);
  padding: 1.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  width: 60%;
  max-width: 220px;
  line-height: 1.2;
}

.coming-soon {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  background: var(--light-cream);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coming-soon-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.coming-soon h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: var(--text-gray);
  font-size: 1rem;
}

.result-actions {
  text-align: center;
  background: var(--dark-blue);
  padding: 0.6rem;
  margin: 1rem -1.5rem -1.5rem -1.5rem;
  border-radius: 0 0 15px 15px;
}

.view-full-btn {
  background: var(--dark-orange);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.view-full-btn:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.jackpot-section {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  background: var(--light-cream);
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 700;
}

.jackpot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.jackpot-grid>* {
  width: 100%;
  max-width: 350px;
}

.jackpot-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--dark-orange);
}

.jackpot-time {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.jackpot-label {
  color: var(--dark-orange);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.jackpot-number {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  background: var(--light-cream);
  padding: 0.75rem;
  border-radius: 8px;
}

.chart-section {
  padding: 2rem 0;
}

.prize-section__table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}

.prize-section__table>table {
  min-width: 680px;
  width: max(680px, 100%) !important;
}

.prize-section p,
.timetable-section p,
.legal-section p,
.about-section p,
.key-info-section p {
  max-width: 75ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prize-section ul,
.timetable-section ul,
.legal-section ul,
.about-section ul,
.key-info-section ul {
  max-width: 75ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.prose {
  max-width: 75ch;
  margin: 0 auto;
}

.chart-wrapper {
  overflow-x: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.result-table thead {
  background: var(--dark-blue);
  color: var(--white);
}

.result-table th {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-table td {
  padding: 0.875rem;
  text-align: center;
  border: 1px solid var(--border-light);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.result-table tbody tr:nth-child(even) {
  background: var(--light-cream);
}

.result-table tbody tr:hover {
  background: #FFE4B5;
}

.result-table td:first-child {
  font-weight: 700;
  color: var(--dark-orange);
}

.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #F0F0F0 0%, #E0E0E0 100%);
  border-radius: 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

.coming-soon h3 {
  color: var(--text-dark);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.coming-soon p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .lottery-header {
    padding: 1.5rem 1rem;
  }

  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  .ticket-search {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .nav-tabs {
    flex-direction: column;
  }

  .nav-tab {
    width: 100%;
    text-align: center;
  }

  .time-selector {
    grid-template-columns: 1fr;
  }

  .jackpot-grid {
    grid-template-columns: 1fr;
  }

  .result-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .result-title {
    order: 4;
    flex-basis: 100%;
    text-align: center;
    margin-top: 0.25rem;
    font-size: 0.9rem;
  }

  .chart-wrapper {
    padding: 1rem;
  }

  .result-table th,
  .result-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .results-tabs-header {
    padding: 1rem 1.5rem;
    gap: 6px;
  }

  .results-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .result-table-wrapper {
    margin: 0 1.5rem 1.5rem 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .time-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .jackpot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

html {
  scroll-behavior: smooth;
}

.live-badge {
  display: inline-block;
  background: #DC143C;
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.side-menu {
  position: fixed;
  top: 0;
  left: -200px;
  width: 200px;
  height: auto;
  max-height: 100vh;
  background: var(--white);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-bottom-right-radius: 12px;
}

.side-menu.open {
  left: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--deep-blue);
  color: var(--white);
}

.menu-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.menu-close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.menu-links {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.menu-links li {
  margin: 0;
}

.menu-link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.menu-link:hover {
  background: var(--light-cream);
  border-left-color: var(--dark-orange);
}

.menu-link.active {
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.1) 0%, transparent 100%);
  border-left-color: var(--dark-orange);
  color: var(--dark-orange);
  font-weight: 600;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.result-card.expandable .result-header {
  cursor: pointer;
  position: relative;
}

.expand-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  transition: transform 0.3s;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1;
  padding-right: 0.25rem;
}

@media (min-width: 769px) {
  .expand-icon {
    order: 3;
    margin-left: auto;
  }
}

.result-card.expanded .expand-icon {
  transform: rotate(45deg);
}

.result-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 1.5rem;
}

.result-card.expanded .result-content {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
  padding: 1.5rem;
  border-left: 2px solid var(--dark-blue);
  border-right: 2px solid var(--dark-blue);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  min-width: 80px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 100px;
}

.timer-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-orange);
  font-family: 'Courier New', monospace;
  line-height: 1;
}

.timer-label {
  font-size: 0.65rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.3rem;
}

@media (max-width: 480px) {
  .countdown-timer {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .timer-unit {
    min-width: 70px;
    padding: 0.5rem 0.2rem;
  }

  .timer-value {
    font-size: 1.5rem;
  }

  .timer-label {
    font-size: 0.6rem;
  }
}

.timer-expired {
  color: #28a745;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Combo Results Header */
.combo-results-header {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.combo-results-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* Result Tables Section */
.result-table-section {
  margin: 2rem 0;
}

.result-table-header {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  padding: 0;
  background: transparent;
  display: block;
}

.result-table-wrapper {
  overflow: visible;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0;
  margin: 0 1.5rem 1.5rem 1.5rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

@media (max-width: 768px) {
  .result-table-wrapper {
    margin: 0 0.5rem 1.5rem 0.5rem;
  }
}

.result-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.result-table-wrapper table thead tr {
  background: var(--deep-blue);
  border-radius: 12px;
}

.result-table-wrapper table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  color: var(--white);
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.result-table-wrapper table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.result-table-wrapper table thead th:last-child {
  border-radius: 0 12px 0 0;
}

.result-table-wrapper table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s;
}

.result-table-wrapper table tbody tr:nth-child(odd) {
  background: var(--light-cream);
}

.result-table-wrapper table tbody tr:nth-child(even) {
  background: #ffffff;
}

.result-table-wrapper table tbody tr:hover {
  background: #FFE4B5;
}

.result-table-wrapper table td {
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .result-table-wrapper table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
}

.result-table-wrapper table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.prize-icon {
  color: var(--yellow);
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Tabbed Result Section */
.results-tabs-section {
  background: var(--white);
  border-radius: 12px;
  overflow: visible;
  box-shadow: var(--shadow);
  margin: 2rem 0;
  padding: 0;
  min-height: 600px;
}

@media (max-width: 768px) {
  .results-tabs-section {
    min-height: 800px;
  }
}

@media (max-width: 480px) {
  .results-tabs-section {
    min-height: 900px;
  }
}

.results-tabs-header {
  display: flex;
  gap: 8px;
  padding: 1.2rem 1.5rem;
  background: var(--white);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.results-tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #1a1a1a;
  color: var(--white);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  flex: 0 1 auto;
  white-space: nowrap;
}

.results-tab-btn.active {
  background: var(--deep-blue);
  border: none;
}

.results-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.results-tab-content {
  display: none;
  padding: 0;
  margin: 0;
}

.results-tab-content.active {
  display: block;
  padding: 0;
  margin: 0;
}

.results-tab-content table {
  table-layout: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.results-tab-content table th,
.results-tab-content table td {
  word-break: break-word;
  overflow-wrap: break-word;
}

.results-tab-content table th:nth-child(1),
.results-tab-content table td:nth-child(1) {
  width: 20%;
  min-width: 80px;
}

.results-tab-content table th:nth-child(2),
.results-tab-content table td:nth-child(2) {
  width: 80%;
  word-break: break-word;
}

@media (max-width: 768px) {

  .results-tab-content table th,
  .results-tab-content table td {
    padding: 0.8rem 0.6rem !important;
    font-size: 0.8rem;
  }
}

/* Quick Result Cards */
.quick-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.quick-card {
  background: var(--deep-blue);
  padding: 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-time {
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.card-period {
  font-size: 0.9rem;
  font-weight: 600;
}

.card-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  position: absolute;
  bottom: 0.5rem;
  left: 1.5rem;
}

.card-arrow {
  font-size: 1.75rem;
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.2);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.date-navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 700px;
  padding: 0 clamp(0.5rem, 2vw, 2rem);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .date-navigation {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
}

.date-nav-button {
  background: linear-gradient(135deg, var(--deep-blue) 0%, #0D47A1 100%);
  border: none;
  border-radius: 20px;
  padding: 1rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-weight: 600;
  min-height: 80px;
}

@media (max-width: 480px) {
  .date-nav-button {
    padding: 0.75rem;
    gap: 0.5rem;
    min-height: 70px;
  }
}

.date-nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.date-nav-button.prev {
  flex-direction: row;
}

.date-nav-button.next {
  flex-direction: row-reverse;
}

.date-nav-arrow {
  background: var(--primary-orange);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .date-nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }
}

.date-nav-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.date-nav-button.next .date-nav-content {
  align-items: flex-end;
}

.date-nav-date {
  font-size: 1.25rem;
  font-weight: 700;
}

@media (max-width: 480px) {
  .date-nav-date {
    font-size: 1rem;
  }
}

.date-nav-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Footer Main Title */
.footer-main-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Footer Quick Date Buttons */
.footer-quick-dates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .footer-quick-dates {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-quick-dates> :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .footer-quick-dates> :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .footer-quick-dates> :nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

.footer-date-container {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(13, 71, 161, 0.6) 100%);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.footer-container-title {
  margin: 0 0 1.2rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 1;
  text-align: left;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-icon {
  background: #FF8C00;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.footer-date-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .footer-date-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

.footer-date-btn {
  background: linear-gradient(135deg, #1a2f5a 0%, #0f2847 100%);
  border: none;
  color: #fff;
  padding: 0.9rem 0.75rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-date-btn:hover {
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 140, 0, 0.35);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.footer-links-group a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  display: block;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.footer-links-group a:hover {
  opacity: 1;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
  .footer-quick-dates {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-date-container {
    padding: 1.2rem;
  }

  .footer-container-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .footer-date-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .footer-date-btn {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .footer-main-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .footer-quick-dates {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-date-buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .footer-date-btn {
    padding: 0.7rem 0.4rem;
    font-size: 0.75rem;
  }

  .footer-main-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}