:root {
    --tt-blue: #3B82F6;
    --tt-green: #10B981;
    --tt-bg: #F3F4F6;
    --tt-text: #1F2937;
    --tt-dark: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--tt-bg);
    color: var(--tt-text);
    padding-bottom: 90px;
    padding-top: env(safe-area-inset-top);
    overflow-x: hidden;
}

.tt-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    background: white;
    min-height: 100vh;
}

/* Slanted Background */
.bg-slant {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(120deg, var(--tt-blue) 0%, #2563EB 100%);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: 0;
}

/* Header */
.tt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    z-index: 10;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    padding: 2px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
}

.brand-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.nav-dl-btn {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

/* Main Content */
main {
    position: relative;
    z-index: 5;
    padding: 15px;
}

/* Sport Hero */
.sport-hero {
    margin-bottom: 30px;
    text-align: center;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    background: white;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-slogan h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--tt-dark);
    margin-bottom: 6px;
}

.hero-slogan p {
    font-size: 13px;
    color: #666;
}

/* Feature Matrix */
.feature-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.f-card {
    padding: 15px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.f-card:active {
    transform: scale(0.98);
}

.f-card.primary {
    background: white;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.f-card.secondary {
    background: #EFF6FF;
    border: 1px solid transparent;
}

.f-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.f-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--tt-dark);
    margin-bottom: 4px;
}

.f-card p {
    font-size: 11px;
    color: #6B7280;
}

/* Hot Sports Scroll */
.hot-sports {
    margin-bottom: 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 5px;
}

.section-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tt-dark);
}

.section-head span {
    font-size: 12px;
    color: #9CA3AF;
}

.sports-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sport-pill {
    padding: 8px 16px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13px;
    color: var(--tt-text);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Content Area */
.content-area {
    margin-bottom: 30px;
}

.info-block {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.info-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--tt-blue);
    margin-bottom: 8px;
}

.info-block p {
    font-size: 13px;
    line-height: 1.6;
    color: #4B5563;
}

/* Data Bar */
.data-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--tt-dark);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.data-item {
    text-align: center;
}

.data-item strong {
    display: block;
    font-size: 24px;
    color: var(--tt-green);
    margin-bottom: 4px;
}

.data-item span {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v-line {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

/* Floating Capsule Bar */
.float-capsule-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 50px;
    padding: 8px 8px 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
    z-index: 1000;
    border: 1px solid #E5E7EB;
    margin-bottom: env(safe-area-inset-bottom);
}

.capsule-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.capsule-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.capsule-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 12px;
}

.big-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--tt-dark);
}

.small-text {
    font-size: 10px;
    color: #6B7280;
}

.capsule-btn {
    background: var(--tt-blue);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

@media (max-width: 360px) {
    .f-card { padding: 12px; }
    .hero-slogan h2 { font-size: 20px; }
}
