/* Tilak Varma Fan Club shared shell for the isolated BCCI fixtures area. */
:root {
  --tv-blue: #0b5fc4;
  --tv-blue-deep: #064994;
  --tv-orange: #ff8b58;
  --tv-glass: rgba(9, 28, 52, 0.94);
}
body {
  padding-bottom: 0;
}
.tvfc-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 10px max(18px, calc((100% - 1120px) / 2));
  color: #fff;
  background: linear-gradient(110deg, #0b5fc4, #0755ad 55%, #064994);
  border-bottom: 1px solid rgba(150, 210, 255, 0.5);
  box-shadow: 0 6px 22px rgba(0, 15, 45, 0.2);
}
.tvfc-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font:
    800 13px/1.15 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0.09em;
}
.tvfc-brand-photo {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #ffffff80;
  border-radius: 14px;
  background: #071a34;
  box-shadow: 0 4px 14px #00102d3d;
}
.tvfc-brand-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.tvfc-brand small {
  display: block;
  margin-top: 4px;
  color: #dceaff;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.tvfc-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}
.tvfc-nav a,
.tvfc-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font:
    700 11px/1.2 system-ui,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.tvfc-nav a:hover,
.tvfc-nav a[aria-current="page"],
.tvfc-nav button:hover {
  border-color: #ffffff35;
  background: #ffffff17;
}
.tvfc-menu-toggle {
  display: none !important;
}
.tvfc-mobile-dock,
.tvfc-mobile-menu {
  display: none;
}
.tvfc-shell-note {
  color: #a8bbd2;
}
@media (max-width: 800px) {
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .tvfc-header {
    min-height: 66px;
    padding: 8px 13px;
    gap: 10px;
  }
  .tvfc-brand {
    max-width: calc(100% - 62px);
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  .tvfc-brand-photo {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }
  .tvfc-menu-toggle {
    display: flex !important;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #ffffff55;
    border-radius: 15px;
    background: #ffffff16;
    color: white;
  }
  .tvfc-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 3px;
    background: #fff;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .tvfc-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .tvfc-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .tvfc-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .tvfc-nav {
    display: none;
  }
  .tvfc-mobile-menu:not([hidden]) {
    position: fixed;
    z-index: 10002;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    top: 10px;
    left: 14px;
    right: 14px;
    max-height: min(68dvh, 540px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 15px;
    border: 1px solid rgba(150, 210, 255, 0.58);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(12, 66, 119, 0.94), rgba(4, 22, 48, 0.96));
    box-shadow:
      0 22px 55px rgba(0, 10, 28, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
    animation: tvfc-menu-in 0.22s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }
  .tvfc-mobile-menu a,
  .tvfc-mobile-menu button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 64px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
    color: #fff;
    text-decoration: none;
    font:
      750 12px/1.25 system-ui,
      sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      transform 0.18s ease;
  }
  .tvfc-mobile-menu a:active {
    transform: scale(0.97);
  }
  .tvfc-mobile-menu a[aria-current="page"] {
    border-color: rgba(255, 139, 88, 0.8);
    background: linear-gradient(135deg, rgba(255, 124, 69, 0.28), rgba(255, 255, 255, 0.09));
    box-shadow:
      inset 0 -2px 0 #ff8b58,
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .tvfc-mobile-menu .tvfc-menu-heading {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cce2ff;
    font:
      800 10px system-ui,
      sans-serif;
    letter-spacing: 0.16em;
    padding: 4px 2px 10px;
    border-bottom: 1px solid #ffffff24;
    margin-bottom: 2px;
  }
  .tvfc-mobile-menu .tvfc-close {
    width: 32px;
    min-height: 32px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 19px;
  }
  .tvfc-mobile-dock {
    position: fixed !important;
    z-index: 10001 !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(7px + env(safe-area-inset-bottom, 0px)) !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    min-height: 70px;
    padding: 7px 6px;
    border: 1px solid #ffffffc7;
    border-radius: 24px;
    background: rgba(244, 248, 255, 0.91);
    box-shadow:
      0 12px 34px #0004,
      inset 0 1px 0 #fff;
    backdrop-filter: blur(25px) saturate(1.4);
  }
  .tvfc-mobile-dock a,
  .tvfc-mobile-dock button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 54px;
    padding: 4px 1px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #354256;
    text-decoration: none;
    font:
      700 10px/1.1 system-ui,
      sans-serif;
  }
  .tvfc-mobile-dock .tvfc-dock-icon {
    font-size: 21px;
    line-height: 1;
  }
  .tvfc-mobile-dock .is-active {
    background: #0b5fc41a;
    color: #0b5fc4;
  }
  body.tvfc-menu-open:after {
    content: "";
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: #020d1c66;
    backdrop-filter: blur(2px);
  }
  body.tvfc-menu-open .tvfc-mobile-dock {
    visibility: hidden;
    pointer-events: none;
  }
  .tvfc-menu-toggle {
    z-index: 10003;
  }
}
@keyframes tvfc-menu-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tvfc-mobile-menu {
    animation: none !important;
    transition: none !important;
  }
}

.tvfc-match-centre-trigger {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #ffffff55;
  border-radius: 11px;
  background: #ffffff16;
  color: #fff;
  font:
    750 11px/1.2 system-ui,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.tvfc-match-centre-trigger:hover,
.tvfc-match-centre-trigger:focus-visible {
  background: #ffffff28;
  outline: 2px solid #a9e4ff;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .tvfc-brand {
    max-width: calc(100% - 150px);
  }
  .tvfc-match-centre-trigger {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 10px;
  }
  .tvfc-menu-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 390px) {
  .tvfc-mobile-menu:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tvfc-brand {
    max-width: calc(100% - 126px);
    gap: 6px;
    font-size: 10px;
  }
  .tvfc-brand-photo {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
  .tvfc-match-centre-trigger {
    padding: 6px;
    font-size: 9px;
  }
  .tvfc-menu-toggle {
    flex-basis: 34px;
    width: 34px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .tvfc-mobile-menu:not([hidden]) {
    left: 10px;
    right: 10px;
    top: 72px;
    padding: 11px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .tvfc-mobile-menu a {
    min-height: 58px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
  }
}

/* 16 Oct 2026 — visual parity with the main /matches/ mobile glass shell.
   Scoped to the isolated BCCI fixtures test folder only. */
@media (min-width: 801px) {
  .tvfc-header {
    min-height: 82px;
    padding: 12px max(24px, calc((100% - 1180px) / 2));
  }
  .tvfc-brand-photo {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
  .tvfc-nav {
    gap: 7px;
  }
  .tvfc-nav a {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
  }
}
@media (max-width: 800px) {
  body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .tvfc-header {
    min-height: 74px;
    height: auto;
    padding: 9px 18px;
    gap: 12px;
    background: linear-gradient(105deg, #052552 0%, #0b5fc4 54%, #083a7b 100%);
    border-bottom: 1px solid rgba(124, 229, 242, 0.5);
    box-shadow:
      0 8px 24px rgba(0, 22, 65, 0.22),
      0 1px 0 rgba(255, 124, 69, 0.35);
  }
  .tvfc-brand {
    max-width: calc(100% - 66px);
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.09em;
  }
  .tvfc-brand-photo {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }
  .tvfc-menu-toggle {
    display: flex !important;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border-color: rgba(124, 229, 242, 0.72);
    background: linear-gradient(145deg, rgba(18, 104, 190, 0.9), rgba(5, 43, 91, 0.9));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 7px 18px rgba(0, 20, 55, 0.18);
    z-index: 10003;
  }
  .tvfc-mobile-menu:not([hidden]) {
    top: 86px;
    left: 15px;
    right: 15px;
    max-height: calc(100dvh - 190px);
    padding: 15px;
    border-radius: 28px;
    background:
      linear-gradient(135deg, rgba(12, 66, 119, 0.88), rgba(4, 22, 48, 0.88)), rgba(8, 28, 54, 0.78);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
      0 24px 60px rgba(0, 10, 28, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    animation: tvfc-menu-in 0.24s cubic-bezier(0.2, 0.75, 0.25, 1);
  }
  .tvfc-mobile-menu a {
    min-height: 68px;
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-size: 13px;
    transition:
      transform 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease;
  }
  .tvfc-mobile-menu a[aria-current="page"] {
    border-color: rgba(255, 145, 91, 0.8);
    background: linear-gradient(135deg, rgba(255, 124, 69, 0.28), rgba(255, 255, 255, 0.09));
    box-shadow:
      inset 0 -3px 0 #ff8b58,
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .tvfc-mobile-dock {
    left: 18px !important;
    right: 18px !important;
    bottom: calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 76px;
    padding: 7px 8px;
    border-radius: 28px;
    background: rgba(244, 248, 255, 0.88);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    backdrop-filter: blur(28px) saturate(1.6);
  }
  .tvfc-mobile-dock a,
  .tvfc-mobile-dock button {
    min-height: 60px;
    font-size: 11px;
  }
  .tvfc-mobile-dock .tvfc-dock-icon {
    font-size: 23px;
  }
}
@media (max-width: 420px) {
  .tvfc-header {
    padding-inline: 12px;
  }
  .tvfc-brand {
    max-width: calc(100% - 62px);
    gap: 8px;
    font-size: 11px;
  }
  .tvfc-brand-photo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
  .tvfc-mobile-menu:not([hidden]) {
    left: 10px;
    right: 10px;
    top: 80px;
  }
}

/* Final mobile parity overrides — BCCI test folder only. */
@media (max-width: 800px) {
  .tvfc-mobile-menu:not([hidden]) {
    position: fixed !important;
    top: 10px !important;
    left: 15px !important;
    right: 15px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    max-height: min(68dvh, 540px) !important;
    padding: 15px !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    border: 1px solid rgba(150, 210, 255, 0.62) !important;
    border-radius: 26px !important;
    background: linear-gradient(135deg, rgba(12, 66, 119, 0.94), rgba(4, 22, 48, 0.96)) !important;
    -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
    backdrop-filter: blur(28px) saturate(160%) !important;
    box-shadow:
      0 24px 60px rgba(0, 10, 28, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    animation: tvfc-menu-in 0.24s cubic-bezier(0.2, 0.75, 0.25, 1) both !important;
  }
  .tvfc-mobile-menu .tvfc-menu-heading {
    grid-column: 1 / -1 !important;
    min-height: 36px;
  }
  .tvfc-mobile-menu a {
    min-height: 68px !important;
    border-radius: 19px !important;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.055)
    ) !important;
    font-size: 13px !important;
  }
  .tvfc-mobile-menu a[aria-current="page"] {
    border-color: rgba(255, 145, 91, 0.8) !important;
    background: linear-gradient(
      135deg,
      rgba(255, 124, 69, 0.28),
      rgba(255, 255, 255, 0.09)
    ) !important;
    box-shadow:
      inset 0 -3px 0 #ff8b58,
      inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  }
  body.mobile-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(1, 10, 24, 0.38);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  body.mobile-menu-open > .tvfc-mobile-dock {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media (max-width: 390px) {
  .tvfc-mobile-menu:not([hidden]) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .tvfc-mobile-menu a {
    min-height: 58px !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
  }
}

/* Match-page interaction motion parity — scoped to BCCI fixtures test only. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fixture-card,
  .upcoming-match-card,
  .team-logo,
  .tvfc-mobile-menu a,
  .tvfc-mobile-dock a,
  .tvfc-mobile-dock button {
    transition:
      transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
      border-color 200ms ease,
      box-shadow 220ms ease,
      background-color 180ms ease,
      color 180ms ease,
      opacity 180ms ease;
  }
  .fixture-card:hover,
  .upcoming-match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(117, 227, 255, 0.48);
    box-shadow: 0 14px 32px rgba(0, 8, 24, 0.24);
  }
  .tvfc-mobile-menu a:hover {
    transform: translateY(-1px);
    border-color: rgba(150, 210, 255, 0.42);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.075));
  }
}
.fixture-card,
.upcoming-match-card {
  animation: bcci-match-card-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fixture-card:nth-child(2),
.upcoming-match-card:nth-child(2) {
  animation-delay: 45ms;
}
.fixture-card:nth-child(3),
.upcoming-match-card:nth-child(3) {
  animation-delay: 90ms;
}
.fixture-card:nth-child(4),
.upcoming-match-card:nth-child(4) {
  animation-delay: 135ms;
}
.fixture-card:nth-child(5),
.upcoming-match-card:nth-child(5) {
  animation-delay: 180ms;
}
@keyframes bcci-match-card-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fixture-card,
  .upcoming-match-card,
  .tvfc-mobile-menu,
  .tvfc-mobile-menu a,
  .tvfc-mobile-dock,
  .tvfc-mobile-dock a,
  .tvfc-mobile-dock button {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Match-card motion follows the main Matches page, while preserving reduced-motion accessibility. */
.bcci-matches-page .fixture-card,
.bcci-matches-page .upcoming-match-card,
.bcci-matches-page .team-logo,
.bcci-matches-page .upcoming-details {
  transition:
    transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 200ms ease,
    box-shadow 220ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bcci-matches-page .fixture-card:hover,
  .bcci-matches-page .upcoming-match-card:hover {
    transform: translateY(-2px);
    border-color: rgba(117, 227, 255, 0.48);
    box-shadow: 0 14px 32px rgba(0, 8, 24, 0.24);
  }
  .bcci-matches-page .upcoming-details:hover {
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bcci-matches-page *,
  .bcci-matches-page *::before,
  .bcci-matches-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Compact section tabs make Live, Results and Completed Matches part of the same page family. */
.bcci-view-tabs {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 18px;
  padding: 7px;
}
.bcci-view-tabs .match-centre-tabs {
  width: 100%;
}
.bcci-view-tabs .match-centre-tab {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 12px;
}
@media (max-width: 760px) {
  .bcci-view-tabs {
    width: calc(100% - 22px);
    margin: 10px auto 14px;
    padding: 6px;
  }
  .bcci-view-tabs .match-centre-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bcci-view-tabs .match-centre-tab {
    min-height: 42px;
    padding-inline: 7px;
    font-size: 12px;
  }
}
