/* ---------- 1. GLOBAL ---------- */
:root {
  --bg: #05080d;
  --navy-1: #0f2a66;
  --navy-2: #071230;
  --line: #1f4a9a;
  --panel: #0d0e11;
  --panel-line: #23262c;
  --tab: #3a4863;
  --tab-line: #55688c;
  --blue: #2f6bff;
  --gold: #f0a500;
  --tabbar-h: 58px;
  --rail-w: 260px;
  --pic: clamp(130px, 46vh, 240px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
  background-color: #060c14;
  background-image: radial-gradient(ellipse at 50% 0%, #1e3a5f 0%, #0f1e2e 40%, #060c14 100%);
  color: #ffffff !important;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
.pntr,
.btn-box {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pntr {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a1219;
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
  border: 1px solid #2a4a6f;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a4a6f;
}

/* ---------- 2. DESKTOP COMPONENTS ---------- */

/* timer + current bid */
div#auctionpoint,
div#time {
  position: absolute;
  top: calc(28% - 55px);
  height: 90px;
  padding: 34px 14px 0;
  text-align: center;
  font-family: montsemibold, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  border-radius: 18px;
  overflow: hidden;
}

div#auctionpoint::before,
div#time::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

div#auctionpoint {
  right: 50px;
  width: 250px;
  font-size: 30px;
  color: #1a0d1e;
  background: linear-gradient(135deg, #f7c948, #e0a030);
  border: 2px solid #ffd98a;
  box-shadow: 0 8px 28px rgba(224, 160, 48, .45), inset 0 0 0 1px rgba(255, 255, 255, .25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

div#auctionpoint::before {
  content: "CURRENT BID";
  color: rgba(26, 13, 30, .75);
}

div#time {
  right: 316px;
  width: 174px;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(160deg, rgba(20, 28, 62, .92), rgba(9, 14, 36, .95));
  border: 2px solid #4da3ff;
  box-shadow: 0 0 20px rgba(77, 163, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .05);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

div#time::before {
  content: "TIMER";
  color: #4da3ff;
}

.pointtyp {
  font-size: 25px;
  font-weight: 700;
  margin-left: 4px;
  opacity: .85;
  display: none;
}

/* top header bar (optional markup) */
.top-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #6b8aad;
  z-index: 1000;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(10, 22, 36, .98), rgba(10, 18, 28, .95));
  border-bottom: 1px solid rgba(30, 58, 95, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top-header-bar .left-info {
  display: flex;
  align-items: center;
  gap: 28px;
}

.top-header-bar .left-info .session-title {
  color: #fff;
  font-weight: 700;
  letter-spacing: 2.5px;
  position: relative;
  padding-left: 14px;
}

.top-header-bar .left-info .session-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: #f0a500;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(240, 165, 0, .6);
}

.top-header-bar .left-info .feed-id {
  color: #f0a500;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(240, 165, 0, .1);
  border-radius: 4px;
  border: 1px solid rgba(240, 165, 0, .25);
}

.top-header-bar .right-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-header-bar .right-info .time-box {
  background: linear-gradient(145deg, #16273d, #0f1e2e);
  padding: 5px 16px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  border: 1px solid #1e3a5f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.top-header-bar .right-info .stream-status {
  color: #00e676;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.top-header-bar .right-info .stream-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e676, 0 0 20px rgba(0, 230, 118, .4);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(.85);
  }
}

/* auction main card */
.auction-main {
  margin-top: 20px;
  background: linear-gradient(145deg, rgba(22, 39, 61, .9), rgba(15, 30, 46, .9));
  border-radius: 10px;
  display: flex;
  cursor: pointer;
  border: 1px solid rgba(30, 58, 95, .6);
  transition: all .3s ease;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.auction-main:hover {
  border-color: #f0a500;
  box-shadow: 0 8px 30px rgba(240, 165, 0, .15);
  transform: translateY(-2px);
}

.auction-logo {
  width: 80px;
  float: left;
}

.auction-name {
  width: calc(100% - 160px);
  float: left;
  font-size: 21px;
  line-height: 25px;
  text-align: center;
  margin-top: 12px;
}

span.auction-date {
  font-size: 17px;
  color: #6b8aad;
}

.auction-icon {
  width: 80px;
  float: left;
}

.auction-icon a {
  color: #fff;
}

/* sponsor */
.spnlogopos {
  position: absolute;
  top: 10px;
  right: 20px;
  border-radius: 8px;
  z-index: 100;
}

.spnlogopos img {
  height: 150px;
  background: rgba(0, 0, 0, .4);
  border-radius: 8px;
  border: 1px solid #1e3a5f;
}

.spn_lg {
  opacity: 0;
  animation: fadeInRight 1s ease-in-out forwards;
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* league name */
.leaguename {
  width: 100%;
  top: 10px;
  text-align: center;
}

.clubname {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 30px;
  color: #f0a500;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 92%;
  letter-spacing: 6px;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  text-shadow: 0 0 20px rgba(240, 165, 0, .5), 0 0 40px rgba(240, 165, 0, .25), 0 4px 12px rgba(0, 0, 0, .5);
}

.title_tag {
  display: block;
  width: 340px;
  margin: -8px auto 0;
  position: relative;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7));
  animation: floatTag 3s ease-in-out infinite;
}

@keyframes floatTag {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.logodiv {
  margin-top: 14px;
  width: 100%;
  text-align: center;
  position: relative;
}

.logodiv img {
  width: 130px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .7);
  border: 2px solid #1e3a5f;
  background: #0a1219;
  transition: all .3s ease;
}

.logodiv img:hover {
  border-color: #f0a500;
  box-shadow: 0 10px 40px rgba(240, 165, 0, .25);
  transform: scale(1.05);
}

.auction-center {
  display: flex;
  margin: 30px;
  flex-direction: column;
}

/* standby card (optional markup) */
.standby-card {
  background: linear-gradient(160deg, #16273d 0%, #0f1e2e 50%, #0a1622 100%);
  border: 1px solid rgba(30, 58, 95, .6);
  border-radius: 16px;
  padding: 30px 34px 26px;
  width: 520px;
  max-width: 92%;
  margin: 30px auto 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 1px rgba(30, 58, 95, .3);
}

.standby-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0a500, #ffcc00, #f0a500, transparent);
  opacity: .8;
}

.standby-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 165, 0, .03) 0%, transparent 70%);
  pointer-events: none;
}

.standby-video-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(145deg, #0a1622, #060c14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(30, 58, 95, .6);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .5);
}

.standby-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  transition: opacity .3s ease;
}

.standby-video-placeholder:hover img {
  opacity: .8;
}

.standby-video-placeholder .room-label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 800;
  color: #ff4444;
  background: rgba(0, 0, 0, .75);
  padding: 4px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 68, 68, .3);
}

.standby-video-placeholder .room-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ff4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff4444;
  animation: pulse 1.5s infinite;
}

.standby-video-placeholder .cam-label {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  color: #8aa8c8;
  background: rgba(0, 0, 0, .75);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid rgba(30, 58, 95, .5);
}

.status-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f0a500, #ffcc00);
  color: #0a1622;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 22px;
  border-radius: 24px;
  letter-spacing: 2.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(240, 165, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.standby-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: .8px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.standby-desc {
  font-size: 13px;
  color: #6b8aad;
  line-height: 1.8;
  margin: 0 auto 24px;
  max-width: 400px;
}

.standby-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 58, 95, .5);
  gap: 12px;
}

.standby-stats .stat-item {
  text-align: center;
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
}

.standby-stats .stat-label {
  font-size: 10px;
  color: #6b8aad;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 8px;
  font-weight: 700;
}

.standby-stats .stat-value {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
}

.standby-stats .stat-value.yellow {
  color: #f0a500;
}

.standby-stats .stat-value.blue {
  color: #4a9eff;
}

.standby-stats .stat-value.green {
  color: #00e676;
}

/* bottom bar */
.bottom-section {
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: linear-gradient(180deg, #0d1b2a 0%, #0a1622 100%);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .7);
  border-top: 1px solid rgba(30, 58, 95, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bottom-section .left-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bottom-section .right-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

input.btn-input {
  background: linear-gradient(145deg, #16273d, #0f1e2e);
  border: 1px solid #1e3a5f;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  margin: 0 10px;
  width: 85px;
  height: 38px;
  font-size: 12px;
  font-weight: 600;
  transition: all .25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

input.btn-input:focus {
  outline: none;
  border-color: #f0a500;
  background: #1a2f47;
  box-shadow: 0 0 0 3px rgba(240, 165, 0, .15);
}

input.btn-input::placeholder {
  color: #4a6a8a;
  font-weight: 500;
}

.btn-box {
  margin: 0 2px;
  color: #fff;
  background: linear-gradient(145deg, #16273d, #0f1e2e);
  border: 1px solid #1e3a5f;
  padding: 8px 20px;
  font-weight: 700;
  border-radius: 8px;
  font-size: 11px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative;
  overflow: hidden;
}

.btn-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  transition: left .5s ease;
}

.btn-box:hover::before {
  left: 100%;
}

.btn-box:hover {
  background: linear-gradient(145deg, #1e3a5f, #16273d);
  color: #fff;
  border-color: #f0a500;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, .2);
}

.btn-box:active {
  transform: translateY(0);
}

.btn-box.active {
  background: linear-gradient(135deg, #f0a500, #ffcc00);
  color: #0a1622;
  border-color: #f0a500;
  box-shadow: 0 6px 20px rgba(240, 165, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.btn-box.btn-unsold {
  background: linear-gradient(135deg, #f0a500, #ffcc00);
  color: #0a1622;
  border-color: #f0a500;
}

.right-buttons {
  justify-content: flex-end;
}

.right-buttons .btn-box {
  width: 40px;
  height: 38px;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.btn-danger {
  background: linear-gradient(135deg, #d9534f, #c9302c);
  color: #fff;
  border-color: #d9534f;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c9302c, #b52b27);
  box-shadow: 0 6px 20px rgba(217, 83, 79, .3);
}

/* limited plan */
.limited-plan {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: #ffcc00;
  font-weight: 700;
  justify-content: center;
  font-size: 14px;
  letter-spacing: .8px;
  background: rgba(240, 165, 0, .08);
  border: 1px solid rgba(240, 165, 0, .2);
  border-radius: 10px;
  margin: 10px auto;
  max-width: 600px;
  animation: limitedPulse 2s ease-in-out infinite;
}

@keyframes limitedPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 165, 0, .2);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(240, 165, 0, 0);
  }
}

.limited-plan i {
  margin-right: 12px;
  color: #ffcc00;
  font-size: 16px;
}

/* player detail (auction screen) */
.playerdetail.auction {
  position: relative;
  margin: 28px 40px 0;
  padding: 0 0 120px;
}

.playerdetail.auction::after {
  content: "";
  display: block;
  clear: both;
}

.playerdetail.auction #pic {
  position: relative;
  float: left;
  width: 380px;
  height: 380px;
  margin: 0 56px 0 0;
  padding: 12px;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe27a 0%, #f5b301 45%, #b87800 100%);
  box-shadow: 0 0 0 6px rgba(8, 14, 36, .85), 0 0 60px rgba(245, 179, 1, .45), 0 0 120px rgba(245, 179, 1, .18);
  outline: 2px solid rgba(245, 179, 1, .35);
  outline-offset: 12px;
}

.playerdetail.auction .polyout,
.playerdetail.auction .polyin {
  width: 100%;
  height: 100%;
}

.playerdetail.auction #pic .polyin img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  border: 5px solid #0a1230;
  border-radius: 50%;
  background: #0a1230;
}

.playerdetail.auction .isage {
  position: absolute;
  left: 190px;
  top: 362px;
  transform: translateX(-50%);
  z-index: 3;
  width: auto;
  min-width: 130px;
  margin: 0;
  padding: 6px 22px;
  white-space: nowrap;
  text-align: center;
  font: 800 17px/1.2 'Chakra Petch', 'Segoe UI', sans-serif;
  letter-spacing: .04em;
  color: #1a1000;
  background: linear-gradient(135deg, #ffe27a, #f5b301);
  border: 2px solid #fff3b0;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 18px rgba(245, 179, 1, .45);
}

.playerdetail.auction .playertext {
  overflow: hidden;
  margin: 0;
  padding: 6px 0 0;
}

.playerdetail.auction #playername,
.playerdetail.auction #playertyp,
.playerdetail.auction #playerage,
.playerdetail.auction .baseamt {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 0 12px;
  padding: 14px 44px 14px 28px;
  text-align: left;
  color: #fff;
  font: 600 26px/1.15 'Chakra Petch', 'Segoe UI', sans-serif;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #d4a83a 0, #d4a83a 4px, transparent 4px), linear-gradient(90deg, rgba(48, 56, 92, .88), rgba(14, 22, 48, .55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
  animation: kplSlideIn .5s ease both;
}

.playerdetail.auction #playername {
  min-height: 100px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.playerdetail.auction .pname,
.playerdetail.auction .ps1,
.playerdetail.auction .ps2,
.playerdetail.auction .ps3 {
  margin: 0;
  font-size: inherit;
  text-transform: none;
}

.playerdetail.auction .pname {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: .01em;
}

.playerdetail.auction #playername::before,
.playerdetail.auction #playertyp::before,
.playerdetail.auction #playerage::before,
.playerdetail.auction .baseamt::before {
  display: block;
  margin-bottom: 5px;
  font: 600 10px/1 'Inter', 'Segoe UI', sans-serif;
  letter-spacing: .16em;
  color: #e0b84a;
}

.playerdetail.auction #playername::before {
  content: "CRICKETER";
}

.playerdetail.auction #playertyp::before {
  content: "SPECIALIZATION";
}

.playerdetail.auction #playerage::before {
  content: "BATTING & BOWLING ORIENTATION";
}

.playerdetail.auction .baseamt::before {
  content: "KEY PHYSICAL ATTRIBUTE";
}

.playerdetail.auction .ps1::before {
  content: "\f0e7";
  font-family: FontAwesome;
  margin-right: 10px;
  color: #f5b301;
}

.playerdetail.auction .ps3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 12px 2px 0;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.playerdetail.auction .playertext>div:nth-child(2) {
  animation-delay: .08s;
}

.playerdetail.auction .playertext>div:nth-child(3) {
  animation-delay: .16s;
}

.playerdetail.auction .baseamt {
  animation-delay: .24s;
}

@keyframes kplSlideIn {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* sold / unsold stamps */
div#unsolddiv img {
  width: 200px;
  height: auto;
}

div#unsolddiv {
  position: absolute;
  top: 25%;
  transform: translate(50%, 25%);
}

/* highest bidder */
.bidby {
  top: calc(28% + 85px);
  right: 50px;
  position: absolute;
  width: 440px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 18px 20px 20px;
  text-align: left;
  background: linear-gradient(160deg, rgba(20, 28, 62, .92), rgba(9, 14, 36, .95));
  border: 2px solid #8a6a2e;
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.bidby::before {
  content: "● CURRENT HIGHEST BIDDER";
  order: -1;
  width: 100%;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #2fd9a0;
  font-family: montsemibold, sans-serif;
}

#selteamlogo {
  width: auto !important;
  flex: 0 0 auto;
  margin-right: 18px;
}

#selteamlogo img,
#team-logo {
  width: 100px !important;
  height: 100px;
  object-fit: cover;
  border-radius: 50% !important;
  border: 3px solid #4da3ff;
  background: #0d1233;
  box-shadow: 0 0 18px rgba(77, 163, 255, .55), 0 0 40px rgba(140, 90, 255, .25);
}

div#selteamname {
  flex: 1;
  font-size: 34px;
  font-weight: 800;
  line-height: 110%;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  font-family: montsemibold, sans-serif;
}

.teammax {
  width: 100%;
  margin-top: 18px;
}

.teammaxpl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  margin: 0 0 12px;
  border-radius: 12px;
  background: none;
}

.teammaxpl>div[style*="clear"] {
  display: none;
}

.teammaxpl.maxpn {
  margin-top: 0;
  border: 2px solid #e5484d;
  background: linear-gradient(90deg, rgba(229, 72, 77, .22), rgba(229, 72, 77, .06));
  box-shadow: 0 0 18px rgba(229, 72, 77, .25);
}

.teammaxpl.getpl {
  margin-bottom: 0;
  border: 2px solid #e0a030;
  background: linear-gradient(90deg, rgba(224, 160, 48, .22), rgba(224, 160, 48, .06));
  box-shadow: 0 0 18px rgba(224, 160, 48, .2);
}

.lbl {
  float: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 130%;
  color: #ffb4b4;
  text-transform: uppercase;
  font-family: montsemibold, sans-serif;
}

.teammaxpl.getpl .lbl {
  color: #ffd98a;
}

.teammaxpl .val,
#selteammaxpoint {
  float: none;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  font-family: montsemibold, monospace;
}

.teammaxpl .val::before {
  content: "₹";
  margin-right: 4px;
}

#selteamtotalplayer {
  float: none;
  font-size: 34px;
  font-weight: 800;
  color: #ffc247;
  font-family: montsemibold, monospace;
}

/* live (mobile) top menu */
.topmenu {
  clear: both;
  padding: 5px 10px;
  height: 70px;
  background-color: rgba(255, 255, 255, .5);
}

.logo {
  float: left;
  text-align: left;
  color: #000;
  width: 40%;
}

.menu {
  float: right;
  text-align: right;
  margin-top: 20px;
}

.topmenu .menu ul.open {
  padding-left: 0;
}

.topmenu .menu ul.open li {
  float: left;
  list-style: none;
  padding-left: 15px;
}

.tn_flex {
  display: flex;
}

/* hamburger menu */
.extramenubar {
  position: relative;
  display: inline-block;
}

.fa-bars {
  cursor: pointer;
  color: #8aa8c8;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, #172a44, #0e1f38);
  border: 1.5px solid #1e3a5f;
  width: 46px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: all .25s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 4px 12px rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
  line-height: 0;
  text-align: center;
}

.fa-bars::before {
  content: "\f0c9";
  font-family: "FontAwesome";
  font-size: 16px;
  line-height: 1;
  padding: 10px;
  display: inline-block;
  vertical-align: middle;
}

.fa-bars:hover {
  background: linear-gradient(145deg, #1e3a5f, #16273d);
  color: #fff;
  border-color: #f0a500;
  box-shadow: 0 6px 20px rgba(240, 165, 0, .2);
}

.extramenu {
  display: none;
  position: absolute;
  right: 0;
  top: -249px;
  background: linear-gradient(160deg, #16273d, #0f1e2e);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .8);
  width: 190px;
  z-index: 1000;
  border: 1px solid #1e3a5f;
  overflow: hidden;
  animation: menuSlide .2s ease;
}

@keyframes menuSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.extramenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.extramenu ul li {
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(30, 58, 95, .5);
  background: transparent;
  text-align: left;
  color: #8aa8c8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  transition: all .2s ease;
}

.extramenu ul li:last-child {
  border-bottom: none;
}

.extramenu ul li a {
  color: #8aa8c8;
  text-decoration: none;
  display: block;
  transition: color .2s ease;
}

.extramenu ul li:hover {
  background: rgba(30, 58, 95, .5);
  color: #fff;
  padding-left: 22px;
}

.extramenu ul li:hover a {
  color: #fff;
}

/* banners */
.html2-inner,
.category-banner-mt.html2 .html2-inner {
  gap: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.banner1.banners {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: all .3s ease;
}

.inner1 {
  height: 100%;
  width: 100%;
}

.banners {
  position: relative;
  overflow: hidden;
  border: 2px solid #1e3a5f;
  border-radius: 12px;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.banners:hover {
  border-color: #f0a500;
  box-shadow: 0 8px 30px rgba(240, 165, 0, .2);
  transform: translateY(-4px);
}

.inner1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.banners:hover .inner1 img {
  transform: scale(1.08);
}

h3.promo-title {
  margin: 0;
  padding: 0 5px;
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  color: #fff;
}

/* team header + live panel */
.tn_logo {
  float: left;
  width: 20%;
  margin-left: 3%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.auction-hed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(145deg, rgba(22, 39, 61, .8), rgba(15, 30, 46, .8));
  color: #fff;
  border-bottom: 1px solid #1e3a5f;
  border-radius: 10px 10px 0 0;
}

.detail-text {
  flex: 1;
  padding: 0 10px;
}

.sctpnl {
  margin-top: 10px;
}

.sctpnl div {
  display: flex;
  justify-content: flex-end;
}

.sctpnl-points {
  text-align: right;
}

.sctpnl-playerno {
  margin-top: 5px;
  text-align: right;
  color: khaki;
}

.max-section {
  margin-right: 10px;
}

span#teamPoints {
  margin-right: 26px;
}

.tn_name {
  float: right;
  width: 78%;
  color: #f0a500;
  margin-top: 50px;
  font-size: 20px;
  flex-grow: 1;
  display: table;
  flex-direction: column;
  padding-left: 5px;
}

.tn_name span {
  display: table-cell;
  vertical-align: middle;
  text-transform: uppercase;
}

#states div.box {
  float: left;
  margin-right: 10px;
  border: 1px solid #1e3a5f;
  background: rgba(10, 22, 34, .7);
  border-radius: 8px;
  padding: 4px 10px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sts_sold {
  color: #ff4444;
}

.sts_unsold {
  color: #f7af79;
}

.sts_avl {
  color: #00e676;
}

div#auction-hed {
  height: 140px;
  border-bottom: 1px solid #1e3a5f;
}

img#teamLogo {
  width: 130px;
  float: left;
  margin: 5px;
  border-radius: 10px;
}

div#teamName {
  margin: 0 0 0 16px;
  font-size: 35px;
  color: #fff;
  text-transform: uppercase;
}

/* summary team cards */
.card-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  gap: 15px;
}

.player-card {
  position: relative;
  background: linear-gradient(160deg, #16273d 0%, #0f1e2e 100%);
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  transition: all .3s ease;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0a500, transparent);
  opacity: 0;
  transition: opacity .3s ease;
}

.player-card:hover::before {
  opacity: 1;
}

.player-card:hover {
  border-color: #f0a500;
  box-shadow: 0 10px 35px rgba(240, 165, 0, .15);
  transform: translateY(-3px);
}

.player-card img {
  border-radius: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #1e3a5f;
  transition: border-color .3s ease;
}

.player-card:hover img {
  border-color: #f0a500;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}

.player-header h6 {
  font-size: 16px;
  margin: 0;
  color: #fff;
}

.player-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

.card-stats {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.card-stats span {
  font-size: 16px;
}

.player-card a {
  color: #fff;
  text-decoration: none;
}

.max-value {
  color: #f0a500;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(240, 165, 0, .3);
}

.res-value {
  color: #00e676;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 230, 118, .3);
}

/* media / summary (legacy) */
.media-body,
.media-left,
.media-right {
  display: table-cell;
  vertical-align: top;
}

.media-left,
.media>.pull-left {
  padding-right: 10px;
}

.media-left img {
  width: 100px;
  background-color: #16273d;
  border-radius: 8px;
  border: 2px solid #1e3a5f;
}

.summeryteam {
  margin-top: 10px;
  font-size: 21px;
  font-weight: bold;
  clear: both;
  color: #fff;
  margin-bottom: 2px;
}

.smplayer,
.smmax {
  float: left;
  text-align: right;
  font-size: 20px;
  line-height: 107%;
}

.smplayer {
  color: #f0a500;
}

.smmax {
  color: #fff;
}

.smtotal,
.smresrve {
  float: right;
  text-align: right;
  padding-right: 10px;
  font-size: 20px;
  line-height: 107%;
}

.smtotal {
  color: #f0a500;
}

.smresrve {
  color: #00e676;
}

.oddclr {
  background-color: rgba(45, 179, 255, .1);
}

/* confetti */
canvas#confetti {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
}

/* team page */
.pg_tm .detail-logo img {
  width: 95%;
  border-radius: 50%;
  margin: 5px;
  border: 3px solid #1e3a5f;
  transition: border-color .3s ease;
}

.pg_tm .detail-logo img:hover {
  border-color: #f0a500;
}

.pg_tm .detail-logo {
  margin-left: 20px;
  width: 130px;
  float: left;
}

.pg_tm .auction-hed {
  height: 140px;
  border-bottom: 1px solid #1e3a5f;
}

.pg_tm .detail-text {
  width: calc(100% - 130px);
}

.pg_tm .lgrghtpnl {
  float: left;
}

.pg_tm .detail-teamnm {
  margin: 0 0 0 16px;
  font-size: 50px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.pg_tm .team-info {
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  text-align: left;
}

.pg_tm .sctpnl {
  float: right;
  padding-right: 20px;
  padding-top: 10px;
}

.pg_tm .pl_list {
  margin-top: 20px;
}

.container1 {
  width: 95%;
  margin: auto;
}

.pg_tm .plcolmn {
  padding-left: 0;
}

.pg_tm .tema {
  text-transform: uppercase;
  text-shadow: 2px 1px #000033;
  padding: 8px 8px 8px 0;
  background: rgba(10, 22, 34, .7);
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #1e3a5f;
  transition: all .3s ease;
}

.pg_tm .tema:hover {
  border-color: #f0a500;
  box-shadow: 0 6px 20px rgba(240, 165, 0, .15);
}

.pg_tm .tema .logo {
  margin-bottom: 0;
  padding-right: 0;
  float: left;
  padding-left: 5px;
}

.pg_tm .tdpnt {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 5px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  padding: 0 3px;
  margin-left: -3px;
  margin-top: -3px;
}

.pg_tm .tema .team-dis {
  display: inline-block;
  padding-right: 0;
}

.pg_tm .tema .team-nm {
  font-weight: bold;
  line-height: 30px;
  color: #fff;
  float: left;
  font-size: 28px;
}

.pg_tm .tema .player-list {
  color: #ffffc0;
  line-height: 25px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  clear: both;
}

img.img-responsive.plimg {
  height: 150px;
  width: 150px;
  border-radius: 10px;
  border: 2px solid #1e3a5f;
  transition: border-color .3s ease;
}

img.img-responsive.plimg:hover {
  border-color: #f0a500;
}

.col-xs-11.col-sm-6.col-md-4.plcolmn {
  margin: 5px 10px 5px 5px;
  background: rgba(10, 22, 34, .5);
  border-radius: 10px;
  border: 1px solid #1e3a5f;
  transition: all .3s ease;
}

.col-xs-11.col-sm-6.col-md-4.plcolmn:hover {
  border-color: #f0a500;
  box-shadow: 0 6px 20px rgba(240, 165, 0, .15);
}

.plogo {
  float: left;
  margin-right: 10px;
}

/* pricing */
.pg_pk .bg-darkx {
  background: linear-gradient(160deg, #16273d 0%, #0f1e2e 100%) !important;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.pg_pk .bg-darkx:hover {
  border-color: #f0a500;
  box-shadow: 0 10px 35px rgba(240, 165, 0, .15);
  transform: translateY(-4px);
}

/* filter buttons */
button.but1 {
  height: 38px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .8px;
  transition: all .25s ease;
  cursor: pointer;
  text-transform: uppercase;
  border: 1px solid #1e3a5f;
}

button.but1.btyp1 {
  width: 80px;
  background: linear-gradient(145deg, #16273d, #0f1e2e);
  color: #8aa8c8;
}

button.but1.btyp2 {
  width: 110px;
  background: linear-gradient(145deg, #16273d, #0f1e2e);
  color: #8aa8c8;
}

button.but1.btyp1:hover,
button.but1.btyp2:hover {
  background: linear-gradient(145deg, #1e3a5f, #16273d);
  color: #fff;
  border-color: #f0a500;
  box-shadow: 0 6px 20px rgba(240, 165, 0, .15);
  transform: translateY(-2px);
}

button.but1.btyp3 {
  width: 110px;
  border: 0;
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: #fff;
  box-shadow: 0 4px 12px rgba(40, 167, 69, .3);
}

button.but1.btyp3:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  transform: translateY(-2px);
}

button.but1.btyp4 {
  width: 110px;
  border: 0;
  background: linear-gradient(135deg, #d9534f, #c9302c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 83, 79, .3);
}

button.but1.btyp4:hover {
  background: linear-gradient(135deg, #c9302c, #b52b27);
  transform: translateY(-2px);
}

.openply {
  justify-content: space-between;
}

.playercount {
  float: right;
  padding: 6px 14px;
  background: linear-gradient(145deg, #16273d, #0f1e2e);
  border-radius: 8px;
  border: 1px solid #1e3a5f;
  color: #8aa8c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}

/* select */
select {
  width: 150px;
  border: 1px solid #1e3a5f;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background-color: #16273d;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238aa8c8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

select:focus {
  outline: none;
  border-color: #f0a500;
  background-color: #1a2f47;
  box-shadow: 0 0 0 3px rgba(240, 165, 0, .15);
}

select option {
  background: #16273d;
  color: #fff;
}

/* player list */
div#playerContainer {
  margin-top: 27px;
}

img.plimg.lazy {
  height: 150px;
  width: 150px;
  border-radius: 10px;
  border: 2px solid #1e3a5f;
}

.logo.col-md-4.col-sm-4.cos-xs-4 {
  float: left;
}

.team-code .iswkp {
  position: initial;
}

.team-dis.col-md-8.col-sm-8.col-xs-8 {
  display: inline-block;
  padding-right: 0;
}

.team-nm-all {
  font-weight: bold;
  line-height: 30px;
  color: #fff;
  float: left;
  font-size: 24px;
}

.player-list {
  color: #ffffc0;
  line-height: 25px;
  font-family: Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
  clear: both;
}

.team-code {
  color: #fff;
  background: linear-gradient(135deg, #96700e, #b38f2e);
  text-align: center;
  text-shadow: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 120%;
  position: absolute;
  width: 100%;
  bottom: 0;
  border-radius: 0 0 10px 10px;
  padding: 4px;
  letter-spacing: .5px;
}

.pl_pcode {
  float: left;
  padding-left: 5px;
}

span.iswkp img {
  width: 23px;
  height: 23px;
}

.tema.avl {
  background: rgba(10, 22, 34, .6);
  margin-top: 20px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #1e3a5f;
  padding: 10px;
  transition: all .3s ease;
}

.tema.avl:hover {
  border-color: #f0a500;
  box-shadow: 0 6px 20px rgba(240, 165, 0, .1);
}

.col-sm-6.col-md-4.plcolmn {
  float: left;
}

/* manage */
.pg_m .text-white {
  color: #fff !important;
}

.pg_m .bg-darkx {
  background: linear-gradient(160deg, rgba(97, 64, 146, .3), rgba(60, 40, 90, .3)) !important;
  border: 1px solid #1e3a5f;
  border-radius: 12px;
  transition: all .3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.pg_m .bg-darkx:hover {
  border-color: #f0a500;
  box-shadow: 0 10px 35px rgba(240, 165, 0, .15);
  transform: translateY(-4px);
}

/* scroll rail (hidden on desktop) */
.scroll-rail {
  display: none;
}

/* ---------- 3. LARGE SCREENS ---------- */
@media screen and (min-width: 1441px) {
  .clubname {
    font-size: 42px;
  }

  .title_tag {
    width: 400px;
  }

  .logodiv img {
    width: 160px;
  }

  .playerdetail.auction #pic {
    width: 440px;
    height: 440px;
  }

  .playerdetail.auction .isage {
    left: 220px;
    top: 418px;
  }

  .playerdetail.auction #playername,
  .playerdetail.auction #playertyp,
  .playerdetail.auction #playerage,
  .playerdetail.auction .baseamt {
    max-width: 750px;
    font-size: 30px;
  }

  .playerdetail.auction .pname {
    font-size: 40px;
  }

  .bidby {
    width: 500px;
    right: 80px;
  }

  div#selteamname {
    font-size: 40px;
  }
}

/* ---------- 4. LAPTOP / TABLET LANDSCAPE AUCTION LAYOUT (640 - 1440) ---------- */
@media screen and (min-width: 640px) and (max-width: 1440px) {
  body div#auctionpoint {
    position: fixed;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    width: 150px;
    height: 62px;
    margin: 0;
    padding: 26px 8px 0;
    font-size: 22px;
    border-radius: 12px;
  }

  body div#time {
    position: fixed;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: calc(168px + env(safe-area-inset-right, 0px));
    width: 102px;
    height: 62px;
    margin: 0;
    padding: 26px 8px 0;
    font-size: 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f3b02a, #d98d0c);
    border: 1px solid #ffd27a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(224, 160, 48, .35);
  }

  body div#time::before {
    color: rgba(255, 255, 255, .85);
  }

  body div#auctionpoint::before,
  body div#time::before {
    top: 8px;
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  body .bidby {
    position: fixed;
    top: calc(80px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    width: var(--rail-w);
    margin: 0;
    padding: 10px 12px 12px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(160deg, #0b0d12, #07090d);
    justify-content: flex-start;
    text-align: left;
    box-shadow: 0 0 18px rgba(31, 74, 154, .25);
  }

  .bidby::before {
    font-size: 10px;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  #selteamlogo {
    margin-right: 10px;
  }

  #selteamlogo img,
  #team-logo {
    width: 54px !important;
    height: 54px;
  }

  body div#selteamname {
    font-size: 20px;
  }

  .teammax {
    margin-top: 8px;
  }

  .teammaxpl {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .teammaxpl .val,
  #selteammaxpoint,
  #selteamtotalplayer {
    font-size: 22px;
  }

  .lbl {
    font-size: 10px;
  }

  .playerdetail.auction {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "pic text" "age text";
    column-gap: 18px;
    align-items: center;
    align-content: start;
    margin: 8px calc(var(--rail-w) + 28px) 0 12px;
    padding: 12px 14px 20px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    box-shadow: 0 0 24px rgba(31, 74, 154, .35);
  }

  .playerdetail.auction::after {
    display: none;
  }

  .playerdetail.auction #pic {
    grid-area: pic;
    float: none;
    position: relative;
    width: var(--pic);
    height: var(--pic);
    margin: 6px;
    padding: 7px;
    outline-offset: 6px;
    background: linear-gradient(145deg, #ff9a4d, #f0642a);
    box-shadow: 0 0 0 4px rgba(8, 14, 36, .85), 0 0 30px rgba(255, 140, 60, .35);
    outline-color: rgba(255, 140, 60, .35);
  }

  .playerdetail.auction #pic .polyin img {
    width: 100%;
    height: 100%;
    border-width: 3px;
  }

  .playerdetail.auction .isage {
    grid-area: age;
    position: static;
    transform: none;
    justify-self: center;
    margin-top: 12px;
    min-width: 0;
    padding: 3px 16px;
    font-size: 13px;
  }

  .playerdetail.auction .playertext {
    grid-area: text;
    margin: 0;
    padding: 0;
    overflow: visible;
    align-self: center;
  }

  .playerdetail.auction #playername,
  .playerdetail.auction #playertyp,
  .playerdetail.auction #playerage,
  .playerdetail.auction .baseamt {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 0 8px;
    padding: 8px 22px 8px 14px;
    font-size: 15px;
    border: 0;
  }

  .playerdetail.auction .pname {
    font-size: 22px;
    margin: 0;
  }

  .playerdetail.auction .ps1,
  .playerdetail.auction .ps2,
  .playerdetail.auction .ps3 {
    margin: 0;
    font-size: 15px;
  }

  .playerdetail.auction #playername::before,
  .playerdetail.auction #playertyp::before,
  .playerdetail.auction #playerage::before,
  .playerdetail.auction .baseamt::before {
    font-size: 8px;
    margin-bottom: 3px;
  }

  div#unsolddiv {
    position: absolute;
    top: auto;
    left: 70%;
    bottom: 20%;
    transform: rotate(-8deg);
    z-index: 6;
    pointer-events: none;
  }

  div#unsolddiv img {
    width: clamp(110px, 16vw, 170px);
  }

  #soldoutteamstamp {
    position: absolute;
    left: 70%;
    bottom: 20%;
    z-index: 6;
    pointer-events: none;
  }

  #soldoutteamstamp img {
    margin: 0 !important;
    width: clamp(100px, 15vw, 160px) !important;
  }

  body:has(#auctionpoint:not([style*="display: none"])) .leaguename,
  body:has(#auctionpoint:not([style*="display: none"])) .limited-plan {
    padding-right: calc(var(--rail-w) + 20px);
  }
}

@media screen and (min-width: 1024px) and (max-width: 1440px) {
  :root {
    --rail-w: 300px;
    --pic: clamp(200px, 44vh, 300px);
  }

  body div#auctionpoint {
    width: 176px;
  }

  body div#time {
    right: calc(194px + env(safe-area-inset-right, 0px));
    width: 116px;
  }

  .playerdetail.auction #playername,
  .playerdetail.auction #playertyp,
  .playerdetail.auction #playerage,
  .playerdetail.auction .baseamt {
    font-size: 18px;
  }

  .playerdetail.auction .pname {
    font-size: 28px;
  }

  body div#selteamname {
    font-size: 24px;
  }

  .teammaxpl .val,
  #selteammaxpoint,
  #selteamtotalplayer {
    font-size: 26px;
  }
}

/* ---------- 5. TABLET + PHONE APP UI (<= 1180px) ---------- */
@media screen and (max-width: 1180px) {

  body {
    padding-bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  /* header */
  .auction-center {
    margin: 8px 12px;
  }

  .clubname {
    font-size: clamp(16px, 3vw, 28px);
    letter-spacing: 3px;
  }

  .title_tag {
    width: 150px;
    margin-top: -2px;
    animation: none;
  }

  .logodiv {
    margin-top: 6px;
  }

  .logodiv img {
    width: 56px;
    margin: 0;
    border-radius: 10px;
  }

  .limited-plan {
    padding: 6px 12px;
    font-size: 12px;
    margin: 6px auto;
    animation: none;
  }

  .limited-plan i {
    font-size: 13px;
    margin-right: 8px;
  }

  /* ===== TAB BAR  H A S P T C M ===== */
  .bottom-section {
    flex-direction: row;
    overflow: visible;
    gap: 0;
    padding: 6px calc(10px + env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, rgba(5, 8, 13, 0) 0, var(--bg) 35%);
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bottom-section .container-fluid {
    padding: 0;
  }

  .bottom-section .row {
    margin: 0;
    flex-wrap: nowrap;
    align-items: center;
  }

  .right-buttons {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 0;
  }

  .right-buttons .btn-box {
    width: clamp(40px, 6vw, 58px);
    height: 42px;
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 8px;
    background: var(--tab);
    border: 1px solid var(--tab-line);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 8px rgba(0, 0, 0, .45);
  }

  .right-buttons .btn-box::before {
    display: none;
  }

  .right-buttons .btn-box.active {
    background: linear-gradient(180deg, #4a82ff, #1f55e0);
    border-color: #7fa6ff;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(47, 107, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  }

  .right-buttons .extramenubar {
    margin-left: auto;
  }

  .fa-bars {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .extramenu {
    top: auto;
    bottom: calc(100% + 10px);
    right: 0;
    width: 170px;
  }

  @media (hover: none) {
    .btn-box:hover {
      transform: none;
      border-color: var(--tab-line);
      background: var(--tab);
      box-shadow: none;
    }

    .right-buttons .btn-box.active:hover {
      background: linear-gradient(180deg, #4a82ff, #1f55e0);
      border-color: #7fa6ff;
      transform: translateY(-4px);
    }
  }

  /* ===== CONTROL STRIP (No. / points / teams / SOLD / UNSOLD) ===== */
  #leftSection:not(.d-none) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    flex: none;
    padding: 8px calc(10px + env(safe-area-inset-right, 0px)) 8px calc(10px + env(safe-area-inset-left, 0px));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(5, 8, 13, .96);
    border-top: 1px solid var(--line);
  }

  #leftSection .btn-input {
    flex: 0 0 auto;
    width: 70px;
    height: 40px;
    margin: 0;
    font-size: 14px;
  }

  #leftSection .btn-box {
    flex: 0 0 auto;
    height: 40px;
    min-width: 54px;
    margin: 0;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    border: 1.5px solid var(--line);
    box-shadow: 0 0 12px rgba(31, 74, 154, .3);
  }

  #leftSection .btn-box::before {
    display: none;
  }

  #leftSection .btn-sold {
    background: linear-gradient(135deg, #22a559, #167a40);
    border-color: #2fd081;
  }

  #unsoldButton {
    background: linear-gradient(135deg, #d9534f, #b52b27);
    border-color: #ff7b77;
  }

  /* ===== SCROLL RAIL + SETTINGS (S, P, T pages) ===== */
  body.rail-on .scroll-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    z-index: 900;
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: calc(8px + env(safe-area-inset-right, 0px));
    bottom: calc(var(--tabbar-h) + 10px);
    width: 62px;
  }

  .scroll-rail .rail-gear {
    flex: 0 0 62px;
    height: 62px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    color: #fff;
    font-size: 26px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    box-shadow: 0 0 14px rgba(31, 74, 154, .4);
  }

  .scroll-rail .rail-track {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border: 1.5px solid #19b6b6;
    border-radius: 16px;
    box-shadow: 0 0 18px rgba(25, 182, 182, .25);
    background: linear-gradient(180deg, rgba(10, 40, 60, .9), rgba(16, 150, 150, .45) 55%, rgba(8, 30, 50, .9));
  }

  .scroll-rail .rail-track button {
    background: none;
    border: 0;
    color: #cfeeee;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
  }

  .scroll-rail .rail-track button i {
    font-size: 22px;
  }

  body.rail-on #hiddenContainer,
  body.rail-on .pg_tm,
  body.rail-on .pg_p {
    padding-right: 80px;
  }

  /* ===== S : SUMMARY TEAM CARDS ===== */
  #hiddenContainer {
    padding: 8px 12px 0;
  }

  #hiddenContainer>.row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 375px));
    justify-content: start;
    gap: 10px;
    margin: 0;
  }

  #hiddenContainer>.row>[class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
    margin: 0 !important;
  }

  #hiddenContainer .player-card {
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(160deg, #17191d, #0e0f12);
    border: 1px solid #2a2d33;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  }

  #hiddenContainer .player-card:hover {
    transform: none;
    border-color: #2a2d33;
  }

  #hiddenContainer .player-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo name name" "p p pts";
    align-items: center;
    gap: 6px 10px;
  }

  #hiddenContainer .player-header>div {
    display: contents;
  }

  #hiddenContainer .player-card img {
    grid-area: logo;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 0;
  }

  #hiddenContainer .player-name {
    grid-area: name;
    font-size: 17px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #hiddenContainer .player-header p {
    grid-area: p;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #6ee7a0;
  }

  #hiddenContainer .player-header p .text-warning {
    color: #6ee7a0 !important;
  }

  #hiddenContainer .budget-value {
    grid-area: pts;
    justify-self: end;
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #fbbf24 !important;
  }

  #hiddenContainer .card-stats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, .2);
    gap: 10px;
  }

  #hiddenContainer .card-stats p {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b95a5;
    display: flex;
    flex-direction: column;
  }

  #hiddenContainer .card-stats span {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    text-shadow: none;
    line-height: 1.2;
  }

  /* ===== P + T : player list / team tiles ===== */
  .pg_p .filterbar {
    padding: 6px 12px;
  }

  .openopt {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  button.but1 {
    width: auto !important;
    min-width: 74px;
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
  }

  #playerContainer,
  #players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 10px;
    margin: 0;
  }

  div#playerContainer {
    margin-top: 10px;
  }

  #playerContainer>[class*="col-"],
  #players-list>[class*="col-"] {
    width: auto;
    max-width: none;
    float: none;
    flex: none;
    margin: 0;
    padding: 0;
  }

  #playerContainer img.plimg,
  #players-list img.plimg {
    width: clamp(84px, 14vw, 120px);
    height: clamp(84px, 14vw, 120px);
  }

  .pg_tm .tema,
  .pg_tm .plcolmn,
  #players-list .tema {
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    border: 1.5px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(31, 74, 154, .3);
  }

  .pg_tm .tema .team-nm,
  .team-nm-all {
    font-size: 18px;
  }

  .pg_tm .pl_list,
  .container1 {
    width: 100%;
    padding: 0 12px;
  }

  .pg_tm .auction-hed {
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
  }

  .pg_tm .detail-logo {
    width: 64px;
    margin: 0;
  }

  .pg_tm .detail-logo img {
    width: 100%;
    margin: 0;
  }

  .pg_tm .detail-text {
    width: auto;
    flex: 1 1 280px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .pg_tm .lgrghtpnl {
    width: auto !important;
    float: none;
    text-align: left !important;
  }

  .pg_tm .detail-teamnm {
    font-size: clamp(18px, 3vw, 28px);
    margin: 0;
  }

  .pg_tm .sctpnl {
    float: none;
    padding: 0;
    margin: 0;
  }

  .teamststshow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .teamstat {
    background: rgba(15, 42, 102, .55);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px 10px;
    text-align: center;
  }

  .teamstat .lbl {
    font-size: 9px;
    color: #9db4d8;
  }

  .teamstat .val {
    font-size: 16px;
    font-weight: 800;
  }

  #teamTableContainer {
    padding: 0 12px;
    overflow-x: auto;
  }

  #teamTableContainer th,
  #teamTableContainer td {
    padding: 6px 8px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* ===== M : MANAGE TILE GRID (with icons) ===== */
  .pg_m .container {
    max-width: 100%;
    margin: 6px 12px;
    width: auto;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 20px;
  }

  .pg_m h3 {
    font-size: 15px;
    margin: 0 0 8px !important;
    letter-spacing: 1px;
  }

  .pg_m .container>.row:first-of-type {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
  }

  .pg_m .container>.row:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 10px 0 0;
  }

  .pg_m .container>.row>[class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
    margin: 0 !important;
  }

  .pg_m .bg-darkx,
  .pg_m .card {
    margin: 0 !important;
    background: linear-gradient(160deg, #0f2a66, #081634) !important;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .03);
  }

  .pg_m .bg-darkx:hover {
    transform: none;
    border-color: var(--line);
  }

  .pg_m .container>.row:first-of-type .card-body {
    min-height: 84px;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pg_m .container>.row:first-of-type h4 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-transform: none;
  }

  .pg_m .container>.row:first-of-type h4::before {
    font-family: FontAwesome;
    font-size: 24px;
    line-height: 1;
    color: #fff;
  }

  .pg_m .container>.row:first-of-type>div:nth-child(1) h4::before {
    content: "\f1c0";
  }

  .pg_m .container>.row:first-of-type>div:nth-child(2) h4::before {
    content: "\f021";
  }

  .pg_m .container>.row:first-of-type>div:nth-child(3) h4::before {
    content: "\f0e3";
  }

  .pg_m .container>.row:first-of-type>div:nth-child(4) h4::before {
    content: "\f080";
  }

  .pg_m .container>.row:first-of-type>div:nth-child(5) h4::before {
    content: "\f0c0";
  }

  .pg_m a {
    color: #fff;
    text-decoration: none;
    display: block;
  }

  .pg_m .pill-opt .card,
  .pg_m .updlive .card,
  .pg_m .updrandom .card {
    margin-top: 8px !important;
    border-radius: 14px;
  }

  .pg_m .pill-opt h5 {
    font-size: 14px;
    margin: 0;
  }

  .pg_m .pill-opt .card-body {
    padding: 10px;
  }

  .pg_m .bg-success {
    background: linear-gradient(160deg, #135c35, #0c3b22) !important;
    border-color: #2fd081;
  }

  .pg_m .bg-secondary {
    background: linear-gradient(160deg, #1b2330, #10151d) !important;
  }

  /* banners / pricing / booster / penalty */
  .html2-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .pg_pk .container,
  .pg_b .container1 {
    padding: 0 12px;
  }

  .pg_b select,
  .pg_b .form-control {
    width: 100%;
  }

  .pg_pk .card-body h5 {
    font-size: 15px;
  }

  /* ===== LIVE MOBILE VIEW (.livemenu) : gold chips + dark team panel ===== */
  .livemenu .topmenu {
    background: rgba(255, 255, 255, .12);
    border-radius: 12px;
    height: 54px;
  }

  #states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  #states div.box {
    float: none;
    margin: 0;
    min-width: 96px;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #ffcc55;
    border-radius: 8px;
    background: linear-gradient(180deg, #f3b02a, #d98d0c);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  #states div.box .lbl_sts,
  #states div.box .lbl_vl {
    color: #fff;
  }

  #teamsContainer {
    margin: 10px 0 0;
    padding: 10px;
    background: #0e0f12;
    border: 1px solid var(--panel-line);
    border-radius: 16px;
  }
}

/* ---------- 6. SHORT LANDSCAPE PHONES (height <= 480px) ---------- */
@media screen and (max-height: 480px) and (orientation: landscape) {
  :root {
    --tabbar-h: 54px;
    --pic: clamp(110px, 44vh, 170px);
    --rail-w: 250px;
  }

  .title_tag,
  .logodiv {
    display: none;
  }

  .auction-center {
    margin: 4px 12px;
            display: none;
  }

  .clubname {
    font-size: 15px;
    letter-spacing: 2px;
  }

  .limited-plan {
    padding: 3px 10px;
    font-size: 11px;
    margin: 2px auto;
  }

  .right-buttons .btn-box {
    height: 38px;
    width: clamp(38px, 5.2vw, 50px);
    font-size: 17px;
  }

  .fa-bars {
    height: 38px;
  }

  body div#auctionpoint,
  body div#time {
    top: calc(6px + env(safe-area-inset-top, 0px));
    height: 52px;
    padding-top: 22px;
    font-size: 20px;
  }

  body .bidby {
    top: calc(66px + env(safe-area-inset-top, 0px));
  }

  .playerdetail.auction {
    margin-top: 4px;
    padding: 8px 12px 14px;
  }

  .pg_m .container>.row:first-of-type .card-body {
    min-height: 66px;
  }

  .pg_m .container>.row:first-of-type h4 {
    font-size: 13px;
  }

  .pg_m .container>.row:first-of-type h4::before {
    font-size: 20px;
  }
}

/* ---------- 7. PHONE PORTRAIT (< 640px) : everything stacks ---------- */
@media screen and (max-width: 639px) {
  :root {
    --pic: clamp(130px, 42vw, 190px);
  }

  body div#auctionpoint,
  body div#time {
    position: static;
    display: inline-block;
    width: calc(50% - 14px);
    height: 58px;
    margin: 8px 6px 0;
    padding: 24px 6px 0;
    font-size: 20px;
    vertical-align: top;
    border-radius: 12px;
  }

  body div#auctionpoint::before,
  body div#time::before {
    font-size: 9px;
    top: 8px;
  }

  body .bidby {
    position: static;
    width: auto;
    margin: 25px;
    padding: 10px 12px 12px;
    border-radius: 16px;
    border: 1.5px solid var(--line);
    background: linear-gradient(160deg, #0b0d12, #07090d);
  }

  #selteamlogo img,
  #team-logo {
    width: 54px !important;
    height: 54px;
  }

  body div#selteamname {
    font-size: 20px;
  }

  .teammaxpl {
    padding: 6px 10px;
    margin-bottom: 6px;
  }

  .teammaxpl .val,
  #selteammaxpoint,
  #selteamtotalplayer {
    font-size: 22px;
  }

  .playerdetail.auction {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "pic" "age" "text";
    justify-items: center;
    row-gap: 10px;
    margin: 8px 10px 0;
    padding: 14px 12px 20px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
  }

  .playerdetail.auction::after {
    display: none;
  }

  .playerdetail.auction #pic {
    grid-area: pic;
    float: none;
    width: var(--pic);
    height: var(--pic);
    margin: 6px;
    padding: 6px;
    outline-offset: 5px;
    background: linear-gradient(145deg, #ff9a4d, #f0642a);
  }

  .playerdetail.auction #pic .polyin img {
    width: 100%;
    height: 100%;
    border-width: 3px;
  }

  .playerdetail.auction .isage {
    grid-area: age;
    position: static;
    transform: none;
    min-width: 0;
    padding: 3px 16px;
    font-size: 13px;
  }

  .playerdetail.auction .playertext {
    grid-area: text;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .playerdetail.auction #playername,
  .playerdetail.auction #playertyp,
  .playerdetail.auction #playerage,
  .playerdetail.auction .baseamt {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 0 8px;
    padding: 8px 22px 8px 14px;
    font-size: 15px;
    border: 0;
  }

  .playerdetail.auction .pname {
    font-size: 20px;
  }

  div#unsolddiv,
  #soldoutteamstamp {
    position: absolute;
    left: 50%;
    top: 55%;
    bottom: auto;
    transform: translateX(-50%) rotate(-8deg);
    z-index: 6;
    pointer-events: none;
  }

  div#unsolddiv img {
    width: 120px;
  }

  #soldoutteamstamp img {
    width: 110px !important;
    margin: 0 !important;
  }

  .clubname {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .title_tag {
    width: 110px;
  }

  .logodiv img {
    width: 48px;
  }

  #hiddenContainer>.row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pg_m .container>.row:first-of-type {
    grid-template-columns: repeat(2, 1fr);
  }

  .pg_m .container>.row:nth-of-type(2) {
    grid-template-columns: 1fr;
  }

  .html2-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  #playerContainer,
  #players-list {
    grid-template-columns: 1fr;
  }

  body.rail-on #hiddenContainer,
  body.rail-on .pg_tm,
  body.rail-on .pg_p {
    padding-right: 76px;
  }

  .right-buttons {
    gap: 4px;
  }

  .right-buttons .btn-box {
    width: 38px;
    font-size: 16px;
  }

  .fa-bars {
    width: 38px;
  }

  .top-header-bar {
    height: 36px;
    padding: 0 10px;
    font-size: 8px;
  }

  .standby-card {
    padding: 20px 16px 18px;
    border-radius: 12px;
  }

  .standby-video-placeholder {
    height: 100px;
    margin-bottom: 18px;
  }

  .standby-title {
    font-size: 18px;
  }

  .standby-stats {
    padding-top: 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* ---------- 10. TEAM SECTION (.bidby) FIX - phone ---------- */
@media screen and (max-width: 639px) {

  body .bidby {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    clear: both !important;
    float: none !important;
    width: auto !important;
    max-width: calc(100% - 16px) !important;
    margin: 12px 8px 0 !important;
    box-sizing: border-box !important;
  }

  /* keep the inside tidy */
  .bidby #selteamlogo {
    margin-right: 12px;
  }

  .bidby #selteamname {
    min-width: 0;
    word-break: break-word;
  }

  .bidby .teammax {
    margin-top: 10px;
  }

  /* the page can now scroll far enough to see MAX BID + PL. */
  body::after {
    height: calc(var(--bottom-h, 220px) + 20px) !important;
  }
}
/* =====================================================================
   RESPONSIVE - ALL SECTIONS  (tablet + phone)
   Paste AFTER tablet-fix.css, at the very end of your main CSS file.
   Covers: page titles, P (players), T (team page), M (manage),
           C (category), booster / penalty, pricing, team table,
           live mobile view (.livemenu), auction page on portrait tablet
   ===================================================================== */

/* ---------- A. SHARED (<= 1180px) ---------- */
@media screen and (max-width: 1180px) {

  /* when SOLD / UNSOLD strip is visible, keep content above it */
  body:has(#leftSection:not(.d-none)) {
    padding-bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom, 0px));
  }

  /* page titles */
  .pg_m h3,
  .pg_b h3,
  .pg_pk h3,
  #pg_c h3 {
    font-size: clamp(16px, 2.6vw, 22px);
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f0a500;
    margin: 14px 0 12px !important;
  }

  img {
    max-width: 100%;
  }
}

/* ---------- B. P : PLAYER LIST ---------- */
@media screen and (max-width: 1180px) {

  .pg_p .filterbar {
    padding: 8px 12px 4px;
  }

  .pg_p .openopt {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pg_p .openopt::-webkit-scrollbar {
    display: none;
  }

  .pg_p button.but1 {
    flex: 0 0 auto;
    min-width: 88px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
  }

  #playerContainer,
  #players-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 12px;
  }

  #playerContainer .tema,
  #players-list .tema {
    margin: 0;
    padding: 10px;
    height: 100%;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    border: 1.5px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
    overflow: hidden;
  }

  #playerContainer img.plimg,
  #players-list img.plimg {
    object-fit: cover;
    border-radius: 12px;
  }
}

/* ---------- C. T : TEAM PAGE ---------- */
@media screen and (max-width: 1180px) {

  .pg_tm .auction-hed {
    padding: 12px 14px;
    gap: 12px;
  }

  .pg_tm .detail-logo {
    width: 72px;
  }

  .pg_tm .detail-logo img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
  }

  .pg_tm .teamststshow {
    gap: 8px;
  }

  .pg_tm .teamstat {
    min-width: 84px;
    padding: 6px 12px;
  }

  .pg_tm .teamstat .val {
    font-size: 18px;
  }
}

/* ---------- D. M : MANAGE ---------- */

/* tablet: 5 tiles -> 3 + 2 (full width rows) */
@media screen and (min-width: 640px) and (max-width: 1180px) {

  .pg_m .container>.row:first-of-type {
    grid-template-columns: repeat(6, 1fr);
  }

  .pg_m .container>.row:first-of-type>div {
    grid-column: span 2;
  }

  .pg_m .container>.row:first-of-type>div:nth-child(n+4) {
    grid-column: span 3;
  }

  .pg_m .container>.row:first-of-type .card-body {
    min-height: 96px;
  }

  .pg_m .container>.row:first-of-type h4 {
    font-size: 15px;
  }
}

/* big tablet landscape: all 5 in one row */
@media screen and (min-width: 1000px) and (max-width: 1180px) {

  .pg_m .container>.row:first-of-type {
    grid-template-columns: repeat(5, 1fr);
  }

  .pg_m .container>.row:first-of-type>div,
  .pg_m .container>.row:first-of-type>div:nth-child(n+4) {
    grid-column: span 1;
  }
}

/* phone: 2 columns, last (odd) tile full width */
@media screen and (max-width: 639px) {

  .pg_m .container>.row:first-of-type>div {
    grid-column: auto;
  }

  .pg_m .container>.row:first-of-type>div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 1180px) {

  /* mode switches (Trial/Live, Random/Manual): two pills side by side */
  .pg_m .pill-opt>.row {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pg_m .pill-opt>.row>[class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
  }

  .pg_m .updlive>div,
  .pg_m .updrandom>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pg_m .updlive .card,
  .pg_m .updrandom .card {
    margin-top: 0 !important;
  }

  .pg_m .pill-opt .card-body {
    padding: 12px 8px;
  }

  .pg_m .pill-opt h5 {
    font-size: 13px;
    white-space: nowrap;
  }

  /* link boxes (live link, second screen, overlay) */
  .pg_m .container>.row:nth-of-type(2)>.col-md-6>div[style*="margin-top:20px"],
  .pg_m .container>.row:nth-of-type(2)>.col-md-6>div[style*="margin-top: 20px"] {
    margin-top: 10px !important;
    padding: 14px !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 14px !important;
    background: linear-gradient(160deg, #0f2a66, #081634) !important;
  }

  .pg_m .container>.row:nth-of-type(2) h5 {
    font-size: 14px;
    letter-spacing: .6px;
    margin: 0;
  }

  .pg_m .fa-copy {
    font-size: 20px;
    padding: 4px;
  }
}

/* ---------- E. BOOSTER + PENALTY ---------- */
@media screen and (max-width: 1180px) {

  .pg_b .container1 {
    padding: 0 16px;
  }

  .pg_b .form-control {
    height: 46px;
    padding: 0 14px;
    color: #fff;
    background-color: #10285c;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
  }

  .pg_b .form-control::placeholder {
    color: #7f98c4;
  }

  .pg_b .btn-primary {
    height: 46px;
    padding: 0 24px;
    font-weight: 700;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #4a82ff, #1f55e0);
  }

  #booster-list,
  #penaltyList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin: 0;
  }

  #booster-list>[class*="col-"],
  #penaltyList>[class*="col-"] {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
    margin: 0 !important;
  }

  /* override the inline light-blue box */
  #booster-list>div>div,
  #penaltyList>div>div {
    height: 100%;
    background: linear-gradient(160deg, #0f2a66, #081634) !important;
    border: 1.5px solid var(--line);
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  }
}

@media screen and (max-width: 639px) {

  .pg_b .btn-primary {
    width: 100%;
  }
}

/* ---------- F. PRICING ---------- */
@media screen and (max-width: 1180px) {

  .pg_pk .row>[class*="col-"] {
    padding: 6px;
  }

  .pg_pk .fee {
    margin: 6px 0;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    color: #f0a500;
  }

  .pg_pk .detail {
    font-size: 13px;
    color: #9db4d8;
  }

  .pg_pk img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }
}

/* ---------- G. C : CATEGORY ---------- */
@media screen and (max-width: 1180px) {

  #pg_c .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 10px;
    margin: 0;
  }

  #pg_c .row>* {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
    margin: 0;
  }
}

/* ---------- H. TEAM TABLE ---------- */
@media screen and (max-width: 1180px) {

  #teamTableContainer {
    margin: 12px 12px 0;
    padding: 0;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #teamTableContainer .table {
    margin: 0;
    background: transparent;
  }

  #teamTableContainer thead th {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9db4d8;
    border-bottom: 1px solid var(--line);
  }

  #teamTableContainer td,
  #teamTableContainer th {
    vertical-align: middle;
  }

  #teamTableBody img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 10px;
  }
}

/* ---------- I. LIVE MOBILE VIEW (.livemenu) ---------- */
@media screen and (max-width: 1180px) {

  .livemenu {
    padding: 8px 12px 0;
  }

  /* top bar: TEAMS | PLAYERS as pills */
  .livemenu .topmenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
  }

  .livemenu .topmenu .logo,
  .livemenu .topmenu .menu {
    float: none;
    margin: 0;
  }

  .livemenu .topmenu .menu ul.open {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  .livemenu .topmenu .menu ul.open li {
    float: none;
    padding: 0;
  }

  .livemenu .topmenu .menu ul.open li:nth-child(2) {
    display: none;
  }

  .livemenu .topmenu .menu a {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
  }

  /* auction logo + title */
  .livemenu .tn_flex {
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2)) !important;
  }

  .livemenu .tn_logo {
    float: none;
    flex: 0 0 68px;
    width: 68px;
    margin: 0;
  }

  .livemenu .tn_logo img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 14px;
  }

  .livemenu .tn_name {
    float: none;
    display: block;
    flex: 1;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 800;
  }

  .livemenu .tn_name span {
    display: block;
  }

  /* team cards: 1 column on phone, 2 on tablet */
  #teamsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 12px;
    margin: 12px 0 0;
  }

  #teamsContainer>* {
    width: auto;
    max-width: none;
    flex: none;
    padding: 0;
    margin: 0;
  }

  #teamsContainer .auction-hed,
  div#auction-hed {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(160deg, var(--navy-1), var(--navy-2));
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  }

  #teamsContainer img#teamLogo,
  #teamsContainer .auction-hed img {
    float: none;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin: 0;
    object-fit: cover;
    border-radius: 14px;
  }

  #teamsContainer div#teamName {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: none;
  }

  #teamsContainer .detail-text {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.5;
  }

  #teamsContainer .sctpnl {
    margin-top: 6px;
  }

  #teamsContainer .sctpnl div {
    justify-content: flex-start;
  }
}

/* ---------- J. AUCTION PAGE : PORTRAIT TABLET (640 - 1180px) ----------
   Timer / bid / highest bidder stack under the player card instead of a
   side rail, so the player card gets the full width.                   */
@media screen and (min-width: 640px) and (max-width: 1180px) and (orientation: portrait) {

  :root {
    --pic: clamp(200px, 32vw, 300px);
  }

  .leaguename,
  .limited-plan {
    padding-right: 0 !important;
  }

  .playerdetail.auction {
    margin: 10px 16px 0;
    padding: 16px 18px 22px;
    column-gap: 22px;
  }

  .playerdetail.auction #playername,
  .playerdetail.auction #playertyp,
  .playerdetail.auction #playerage,
  .playerdetail.auction .baseamt {
    padding: 10px 24px 10px 16px;
    font-size: 18px;
  }

  .playerdetail.auction .pname {
    font-size: 28px;
  }

  .playerdetail.auction .isage {
    font-size: 15px;
    padding: 4px 20px;
  }

  body div#time,
  body div#auctionpoint {
    position: static;
    display: inline-block;
    width: calc(50% - 22px);
    height: 74px;
    margin: 12px 8px 0;
    padding: 32px 8px 0;
    font-size: 28px;
    vertical-align: top;
    border-radius: 14px;
  }

  body div#time {
    margin-left: 16px;
  }

  body div#auctionpoint {
    margin-right: 16px;
  }

  body div#time::before,
  body div#auctionpoint::before {
    top: 10px;
    font-size: 11px;
  }

  body .bidby {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin: 12px 16px 0;
    padding: 14px 18px 18px;
    clear: both;
  }

  .bidby::before {
    font-size: 12px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  #selteamlogo img,
  #team-logo {
    width: 72px !important;
    height: 72px;
  }

  body div#selteamname {
    font-size: 28px;
  }

  .teammax {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .teammaxpl {
    margin: 0;
    padding: 10px 14px;
  }

  .teammaxpl .val,
  #selteammaxpoint,
  #selteamtotalplayer {
    font-size: 28px;
  }

  .lbl {
    font-size: 11px;
  }
}

/* ---------- 9. SPONSOR LOGO (.spnlogopos) - ALL SCREENS ---------- */

/* Large desktop (> 1440px): top-right, big */
@media screen and (min-width: 1441px) {
  .spnlogopos {
    position: absolute;
    top: 10px;
    right: 20px;
    left: auto;
  }

  .spnlogopos img {
    height: 150px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
  }
}

/* Laptop / tablet (640px - 1440px): top-left, so it doesn't hit the Timer and Bid boxes on the right */
@media screen and (min-width: 640px) and (max-width: 1440px) {
  .spnlogopos {
    position: absolute !important;
    top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    left: calc(12px + env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
    z-index: 100;
  }

  .spnlogopos img {
    height: clamp(48px, 8vw, 80px) !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
  }
}

/* Phone portrait (< 640px): in the page flow, centered, small */
@media screen and (max-width: 639px) {
  .spnlogopos {
    position: static !important;
    width: 100% !important;
    margin: 6px 0 2px !important;
    padding: 0 10px !important;
    text-align: center;
  }

  .spnlogopos img {
    height: 44px !important;
    width: auto !important;
    max-width: 70% !important;
    object-fit: contain;
    padding: 3px 8px;
    vertical-align: middle;
    border-radius: 8px;
  }
}

/* Short landscape phones (height <= 480px): tiny, top-left corner (keep LAST) */
@media screen and (max-height: 480px) and (orientation: landscape) {
  .spnlogopos {
    position: absolute !important;
    top: calc(6px + env(safe-area-inset-top, 0px)) !important;
    left: calc(10px + env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    z-index: 100;
  }

  .spnlogopos img {
    height: 34px !important;
    width: auto !important;
    max-width: 120px !important;
    padding: 2px 6px;
  }
}