

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .top-nav {
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;
            background-color: #D65946;
            padding: 20px 0;
            width: 100%;
        }

        body {
            background: linear-gradient(135deg, #6736ac 0%, #3d296e 100%);
            font-family: Tahoma, sans-serif;
            min-height: 100vh;
            padding: 50px;
        }

        .gallery-header {
            text-align: center;
            color: #f5e6d3;
            margin-bottom: 40px;
            padding: 20px;
        }

        .gallery-header h1 {
            font-size: 32px;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .gallery-header p {
            font-size: 14px;
            color: #d4a574;
            letter-spacing: 0.5px;
        }

        /* Gallery Grid */
        .gallery-container {
            display: grid;
            gap: 30px;
            margin-bottom: 40px;
        }

        /* Mobile: 1 column */
        @media (max-width: 640px) {
            .gallery-container {
                grid-template-columns: 1fr;
                gap: 25px;
                max-width: 300px;
                margin: 0 auto 40px;
            }
        }

        /* Tablet: 2 columns */
        @media (min-width: 641px) and (max-width: 1024px) {
            .gallery-container {
                grid-template-columns: repeat(2, 1fr);
                max-width: 700px;
                margin: 0 auto 40px;
            }
        }

        /* Desktop: 4 columns */
        @media (min-width: 1025px) {
            .gallery-container {
                grid-template-columns: repeat(4, 1fr);
                max-width: 1400px;
                margin: 0 auto 40px;
            }
        }

        /* Card Container */
        .card-container {
            perspective: 1000px;
            width: 100%;
            aspect-ratio: 280/385;
            cursor: pointer;
            position: relative;
            justify-self: center;
        }

        /* Mobile: limit width */
        @media (max-width: 640px) {
            .card-container {
                max-width: 300px;
            }
        }

        @media (min-width: 641px) and (max-width: 1024px) {
            .card-container {
                max-width: 280px;
            }
        }

        @media (min-width: 1025px) {
            .card-container {
                max-width: 250px;
            }
        }

        .basketball-card {
            width: 100%;
            height: 100%;
            position: relative;
            transition: transform 0.6s;
            transform-style: preserve-3d;
        }

        .basketball-card.flipped {
            transform: rotateY(180deg);
        }

        .card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 2px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
        }

        .card-front {
            background: #f5e6d3;
        }

        .card-back {
            background: #d4a574;
            transform: rotateY(180deg);
        }

        .card-content {
            padding: 8px;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .card-front .card-content {
            background: #f5e6d3;
        }

        .card-back .card-content {
            background: #d4a574;
            color: #333;
        }

        .photo-section {
            width: 100%;
            height: 52%;
            background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
            border: 3px solid #333;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ccc;
            font-size: 50px;
            position: relative;
            overflow: hidden;
        }

        .photo-section::before {
            content: '🏀';
            opacity: 0.5;
        }

        .team-stripe {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 20px;
            background: linear-gradient(90deg, #c41e3a 0%, #fdb827 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: white;
            font-size: 9px;
            letter-spacing: 1px;
            border-bottom: 2px solid #333;
            padding: 0 4px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .info-section {
            margin-bottom: 4px;
        }

        .player-name {
            font-size: 13px;
            font-weight: bold;
            color: #1a1a1a;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1.1;
        }

        .player-role {
            font-size: 8px;
            color: #444;
            text-transform: uppercase;
            font-weight: bold;
            margin-top: 2px;
            letter-spacing: 0.5px;
        }

        .stats-section {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 3px;
            margin-bottom: 4px;
        }

        .stat-box {
            background: #e8dcc8;
            border: 2px solid #333;
            padding: 3px;
            text-align: center;
        }

        .stat-number {
            font-size: 11px;
            font-weight: bold;
            color: #c41e3a;
        }

        .stat-label {
            font-size: 6px;
            color: #333;
            text-transform: uppercase;
            font-weight: bold;
            margin-top: 1px;
        }

        .jersey-number {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .number-display {
            font-size: 32px;
            font-weight: bold;
            color: #c41e3a;
            line-height: 1;
            text-shadow: 1px 1px 0 #fdb827;
        }

        .card-set-info {
            text-align: right;
            font-size: 7px;
            color: #666;
        }

        .set-number {
            font-weight: bold;
            font-size: 7px;
        }

        .card-footer {
            font-size: 6px;
            color: #666;
            text-align: center;
            padding-top: 3px;
            border-top: 1px solid #999;
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .flip-hint {
            position: absolute;
            bottom: 8px;
            right: 8px;
            font-size: 14px;
            opacity: 0.5;
            animation: pulse 2s infinite;
        }

        /* Back side styles */
        .back-header {
            text-align: center;
            margin-bottom: 6px;
            border-bottom: 2px solid #333;
            padding-bottom: 4px;
        }

        .back-title {
            font-size: 10px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #1a1a1a;
        }

        .back-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            margin-bottom: 6px;
            font-size: 8px;
        }

        .back-stat-item {
            border-bottom: 1px solid #333;
            padding-bottom: 3px;
        }

        .back-stat-label {
            font-size: 6px;
            text-transform: uppercase;
            font-weight: bold;
            color: #333;
            letter-spacing: 0.5px;
        }

        .back-stat-value {
            font-size: 9px;
            font-weight: bold;
            color: #c41e3a;
            margin-top: 1px;
        }

        .biography {
            font-size: 7px;
            line-height: 1.3;
            color: #333;
            margin-bottom: 6px;
            padding: 4px;
            background: #c9975f;
            border: 1px solid #333;
            overflow-y: auto;
            flex-grow: 1;
            max-height: 80px;
        }

        .biography::-webkit-scrollbar {
            width: 3px;
        }

        .biography::-webkit-scrollbar-track {
            background: #c9975f;
        }

        .biography::-webkit-scrollbar-thumb {
            background: #333;
        }

        .back-footer {
            text-align: center;
            font-size: 6px;
            color: #333;
            border-top: 1px solid #333;
            padding-top: 3px;
            font-weight: bold;
        }

        .flip-hint-back {
            text-align: center;
            margin-top: 4px;
            font-size: 12px;
            opacity: 0.5;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.7; }
        }

        /* Footer */
        .gallery-footer {
            text-align: center;
            color: #d4a574;
            font-size: 12px;
            padding: 20px;
            border-top: 2px solid #d4a574;
            max-width: 1400px;
            margin: 0 auto;
        }